aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/save-bp.exp
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-08-23 12:18:01 -0600
committerTom Tromey <tromey@redhat.com>2013-11-04 11:02:07 -0700
commit08b3fe691141c34a81531906ef9865fe8d25724c (patch)
tree255570da80ace50f54a64c63f6d963ed8ad11ac3 /gdb/testsuite/gdb.base/save-bp.exp
parent32cfb09dfc283da30663f07b0e71726bcb3e093a (diff)
downloadgdb-08b3fe691141c34a81531906ef9865fe8d25724c.zip
gdb-08b3fe691141c34a81531906ef9865fe8d25724c.tar.gz
gdb-08b3fe691141c34a81531906ef9865fe8d25724c.tar.bz2
simple changes in gdb.base
This makes more changes in gdb.base to make it parallel-safe. I think the changes in this particular patch are relatively straightforward, so I've grouped them all together. 2013-11-04 Tom Tromey <tromey@redhat.com> * gdb.base/advance.exp: Use standard_testfile and prepare_for_testing. * gdb.base/bigcore.exp: Use standard_output_file. "cd" to appropriate directory when local. * gdb.base/dump.exp: Use standard_output_file. Update all "dump" and "restore" filenames. * gdb.base/interact.exp: Use standard_output_file. * gdb.base/jit-so.exp: Don't download file when local. * gdb.base/jit.exp (compile_jit_test): Don't download file when local. * gdb.base/list.exp: Use gdb_remote_download. * gdb.base/maint.exp: Use standard_output_file. * gdb.base/prelink.exp: Use standard_output_file. * gdb.base/save-bp.exp: Use standard_output_file. * gdb.base/sepdebug.exp: Use standard_testfile, standard_output_file. (test_different_dir): Don't declare objdir. * gdb.base/solib-search.exp: Use standard_output_file. * gdb.base/step-line.exp: Use gdb_remote_download. * gdb.base/trace-commands.exp: Use standard_output_file.
Diffstat (limited to 'gdb/testsuite/gdb.base/save-bp.exp')
-rw-r--r--gdb/testsuite/gdb.base/save-bp.exp11
1 files changed, 8 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.base/save-bp.exp b/gdb/testsuite/gdb.base/save-bp.exp
index 64df0f7..9afe127 100644
--- a/gdb/testsuite/gdb.base/save-bp.exp
+++ b/gdb/testsuite/gdb.base/save-bp.exp
@@ -48,8 +48,13 @@ gdb_test "commands\nsilent\nend" "End with.*" "add breakpoint commands"
gdb_test "dprintf ${srcfile}:${loc_bp5},\"At foo entry\\n\"" "Dprintf .*"
# Now, save the breakpoints into a file...
-remote_file host delete "bps"
-gdb_test "save breakpoint bps"
+if {[is_remote host]} {
+ set bps bps
+} else {
+ set bps [standard_output_file bps]
+}
+remote_file host delete "$bps"
+gdb_test "save breakpoint $bps" "" "save breakpoint bps"
# Now start a new debugger session...
clean_restart $testfile
@@ -62,7 +67,7 @@ if ![runto_main] {
delete_breakpoints
# ... and restore the breakpoints.
-gdb_test "source bps"
+gdb_test "source $bps" "" "source bps"
# Now, verify that all breakpoints have been created correctly...
set bp_row_start "\[0-9\]+ +breakpoint +keep +y +0x\[0-9a-f\]+ +in"