Running tclint on the test-cases in gdb.opt shows a few problems.
Fix these.
Tested on aarch64-linux.
# 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 \\(\\);" {
return
}
-if ![runto_main] {
+if { ![runto_main] } {
return
}
return -1
}
-if ![runto_main] {
+if { ![runto_main] } {
return -1
}