aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/dprintf-bp-same-addr.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.base/dprintf-bp-same-addr.exp')
-rw-r--r--gdb/testsuite/gdb.base/dprintf-bp-same-addr.exp9
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.base/dprintf-bp-same-addr.exp b/gdb/testsuite/gdb.base/dprintf-bp-same-addr.exp
index 649784b..5d8ffa3 100644
--- a/gdb/testsuite/gdb.base/dprintf-bp-same-addr.exp
+++ b/gdb/testsuite/gdb.base/dprintf-bp-same-addr.exp
@@ -17,8 +17,8 @@
standard_testfile
-if [build_executable "failed to prepare" \
- ${testfile} ${srcfile} {debug}] {
+if {[build_executable "failed to prepare" \
+ ${testfile} ${srcfile} {debug}]} {
return -1
}
@@ -28,9 +28,10 @@ proc test { style } {
global gdb_prompt binfile dp_location
with_test_prefix "$style" {
- clean_restart $binfile
+ clean_restart
+ gdb_load $binfile
- if ![runto_main] {
+ if {![runto_main]} {
return -1
}