aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.cp/infcall-nodebug.exp.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.cp/infcall-nodebug.exp.tcl')
-rw-r--r--gdb/testsuite/gdb.cp/infcall-nodebug.exp.tcl6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.cp/infcall-nodebug.exp.tcl b/gdb/testsuite/gdb.cp/infcall-nodebug.exp.tcl
index 0a7bc76..b743498 100644
--- a/gdb/testsuite/gdb.cp/infcall-nodebug.exp.tcl
+++ b/gdb/testsuite/gdb.cp/infcall-nodebug.exp.tcl
@@ -19,7 +19,7 @@
# the rest of the test can be complied with debug information. Whilst we
# are at it, also test functions with debug information and C functions too.
-if [target_info exists gdb,cannot_call_functions] {
+if {[target_info exists gdb,cannot_call_functions]} {
unsupported "this target can not call functions"
continue
}
@@ -71,9 +71,9 @@ proc build_and_run_test { lang symbols } {
# Startup and run to main.
- clean_restart $binfile
+ clean_restart $::testfile
- if ![runto_main] then {
+ if { ![runto_main] } {
return
}