diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 738c9273162..b44869d6169 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-08-12 Keith Seitz + + * gdb.base/dso2dso.exp: Pass basename of source file in call to + gdb_get_line_number. + 2015-08-12 Joel Brobecker * gdb.base/dso2dso-dso2.c, gdb.base/dso2dso-dso2.h, diff --git a/gdb/testsuite/gdb.base/dso2dso.exp b/gdb/testsuite/gdb.base/dso2dso.exp index b604012be6c..e11606c0f18 100644 --- a/gdb/testsuite/gdb.base/dso2dso.exp +++ b/gdb/testsuite/gdb.base/dso2dso.exp @@ -57,7 +57,7 @@ if { ![runto_main] } { # libdso2) make from sub1 (provided by libdso1), and land at # the expected location. -set bp_location [gdb_get_line_number "STOP HERE" $srcfile_libdso1] +set bp_location [gdb_get_line_number "STOP HERE" [file tail $srcfile_libdso1]] gdb_breakpoint ${srcfile_libdso1}:${bp_location} gdb_continue_to_breakpoint "at call to sub2" \