[commited,testsuite] fix directory prefix in gdb.base/dso2dso.exp
Commit Message
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
@@ -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 ().*"