This is the mail archive of the mailing list for the GDB project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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

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.

2015-09-18  Sandra Loosemore  <>

	* gdb.base/dso2dso.exp: Don't use directory prefix when setting
	the breakpoint.
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 ().*"

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]