[binutils-gdb] [gdb/testsuite, tclint] Fix lib/cache.exp

Tom de Vries vries@sourceware.org
Sun Oct 5 20:50:39 GMT 2025


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=e79664bb56a9c4d4d8762b430ce245390efdd93a

commit e79664bb56a9c4d4d8762b430ce245390efdd93a
Author: Tom de Vries <tdevries@suse.de>
Date:   Sun Oct 5 22:50:09 2025 +0200

    [gdb/testsuite, tclint] Fix lib/cache.exp

Diff:
---
 gdb/tclint.toml             | 1 -
 gdb/testsuite/lib/cache.exp | 2 ++
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/gdb/tclint.toml b/gdb/tclint.toml
index 143c6b87a3c..ef508942881 100644
--- a/gdb/tclint.toml
+++ b/gdb/tclint.toml
@@ -35,7 +35,6 @@ exclude = [
 "gdb/testsuite/config",
 "gdb/testsuite/lib/aarch64.exp",
 "gdb/testsuite/lib/aarch64-scalable.exp",
-"gdb/testsuite/lib/cache.exp",
 "gdb/testsuite/lib/check-test-names.exp",
 "gdb/testsuite/lib/cp-support.exp",
 "gdb/testsuite/lib/debuginfod-support.exp",
diff --git a/gdb/testsuite/lib/cache.exp b/gdb/testsuite/lib/cache.exp
index 4ebb8259957..f5780721e0f 100644
--- a/gdb/testsuite/lib/cache.exp
+++ b/gdb/testsuite/lib/cache.exp
@@ -278,6 +278,7 @@ proc gdb_do_cache {name args} {
 proc gdb_caching_proc {name arglist body} {
     # Define the underlying proc that we'll call.
     set real_name gdb_real__$name
+    # tclint-disable-next-line command-args
     proc $real_name $arglist $body
 
     # Define the advertised proc.
@@ -286,5 +287,6 @@ proc gdb_caching_proc {name arglist body} {
 	lappend caching_proc_body $$arg
     }
     set caching_proc_body [join $caching_proc_body]
+    # tclint-disable-next-line command-args
     proc $name $arglist $caching_proc_body
 }


More information about the Gdb-cvs mailing list