diff mbox

[commited,testsuite] fix directory prefix in gdb.base/dso2dso.exp

Message ID 55FC6597.8030205@codesourcery.com
State New
Headers show

Commit Message

Sandra Loosemore Sept. 18, 2015, 7:27 p.m. UTC
This patch is very similar to the one I just pushed for 
gdb.mi/mi-pending.exp.  The breakpoint location was being set using a 
directory prefix on the source filename that is OK for the host where 
the .exp file is running but that isn't appropriate for remote-host 
testing.  Using just the base name of the file works for both local and 
remote testing.  I've committed this as obvious.

-Sandra
diff mbox

Patch

diff --git a/gdb/testsuite/gdb.base/dso2dso.exp b/gdb/testsuite/gdb.base/dso2dso.exp
index 9dc92d2..2e78782 100644
--- a/gdb/testsuite/gdb.base/dso2dso.exp
+++ b/gdb/testsuite/gdb.base/dso2dso.exp
@@ -64,7 +64,7 @@  if { ![runto_main] } {
 }
 
 set bp_location [gdb_get_line_number "STOP HERE" [file tail $srcfile_libdso1]]
-gdb_breakpoint ${srcfile_libdso1}:${bp_location}
+gdb_breakpoint ${libdso1}.c:${bp_location}
 
 gdb_continue_to_breakpoint "at call to sub2" \
     ".*sub2 ().*"