From: Tom de Vries Date: Thu, 11 Sep 2025 16:31:37 +0000 (+0200) Subject: [gdb/testsuite, tclint] Drop lreverse X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=adb23bcad1fc5553ea64b4a5ba5814b7d0401b5e;p=thirdparty%2Fbinutils-gdb.git [gdb/testsuite, tclint] Drop lreverse When running tclint with lib/future.exp, I get: ... $ tclint lib/future.exp $exp:756:5: redefinition of built-in command 'lreverse' [redefined-builtin] ... The code was added to handle pre-7.5 tcl versions without lreverse. Since we now require Tcl 8.6.2 (as per PR testsuite/33205), drop this. Tested by rerunning tclint. Approved-By: Simon Marchi PR testsuite/33403 Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=33403 --- diff --git a/gdb/testsuite/lib/future.exp b/gdb/testsuite/lib/future.exp index 161c31c9081..6643187597d 100644 --- a/gdb/testsuite/lib/future.exp +++ b/gdb/testsuite/lib/future.exp @@ -749,19 +749,6 @@ if { [array size use_gdb_compile] != 0 } { rename gdb_default_target_compile "" } - -# Provide 'lreverse' missing in Tcl before 7.5. - -if {[info procs lreverse] == ""} { - proc lreverse { arg } { - set retval {} - while { [llength $retval] < [llength $arg] } { - lappend retval [lindex $arg end-[llength $retval]] - } - return $retval - } -} - # Various ccache versions provide incorrect debug info such as ignoring # different current directory, breaking GDB testsuite. set env(CCACHE_DISABLE) 1