]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/testsuite, tclint] Fix gdb.opt
authorTom de Vries <tdevries@suse.de>
Fri, 12 Sep 2025 13:11:29 +0000 (15:11 +0200)
committerTom de Vries <tdevries@suse.de>
Fri, 12 Sep 2025 13:11:29 +0000 (15:11 +0200)
Running tclint on the test-cases in gdb.opt shows a few problems.

Fix these.

Tested on aarch64-linux.

gdb/testsuite/gdb.opt/inline-cmds.exp
gdb/testsuite/gdb.opt/inline-entry.exp
gdb/testsuite/gdb.opt/inline-small-func.exp

index eca897c6730e0dd1acebd90220ace36779ebbabe..e80d6f717fa97fb21294d34f124a581f225c69ae 100644 (file)
@@ -241,7 +241,7 @@ gdb_test "step" ".*set breakpoint 2 here.*" "step into finish marker"
 
 # Some architectures will have one or more instructions after
 # the call instruction which still are part of the call sequence,
-# so it should be expected to return to the caller line after issue 
+# so it should be expected to return to the caller line after issue
 # a 'finish' command.
 gdb_test_multiple "finish" "finish from marker to func1" {
     -re -wrap "func1 \\(\\);" {
index 21be60c28dfa8accea51217296dbfb71e466d985..0c6b0fb2ef5794e2b0e5146ec3054af1b6fa9cc0 100644 (file)
@@ -47,7 +47,7 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile $options] } {
     return
 }
 
-if ![runto_main] {
+if { ![runto_main] } {
     return
 }
 
index d77a10e1b951ce0cd4c5dc88fb5e6a044ee570a1..b04f957508775797304c42d4d8980816f5847138 100644 (file)
@@ -41,7 +41,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} \
     return -1
 }
 
-if ![runto_main] {
+if { ![runto_main] } {
     return -1
 }