]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/testsuite, tclint] Fix unrecognized argument in gdb.trace/mi-traceframe-changed.exp
authorTom de Vries <tdevries@suse.de>
Thu, 11 Sep 2025 16:31:37 +0000 (18:31 +0200)
committerTom de Vries <tdevries@suse.de>
Thu, 11 Sep 2025 16:31:37 +0000 (18:31 +0200)
When running tclint on gdb.trace/mi-traceframe-changed.exp, I get:
...
$ tclint gdb.trace/mi-traceframe-changed.exp
$exp:94:1: unrecognized argument for append: -1 [command-args]
$exp:95:1: unrecognized argument for append: -1 [command-args]
...
for these lines:
...
   94  append testfile -1
   95  append binfile -1
...

This seems harmless to me, but since tclint complains, fix this by quoting the
-1 arguments.

Tested by rerunning tclint.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
PR testsuite/33403
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=33403

gdb/testsuite/gdb.trace/mi-traceframe-changed.exp

index c34f117e4d50ea7d56dd593f3db40985c0df1dee..90a053c9315314e86f6c880b4403bf2e250e1e71 100644 (file)
@@ -91,8 +91,8 @@ if [generate_tracefile $binfile] {
 # Change to a different test case in order to run it on target, and get
 # several traceframes.
 standard_testfile status-stop.c
-append testfile -1
-append binfile -1
+append testfile "-1"
+append binfile "-1"
 set executable $testfile
 
 if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" \