diff options
author | Daniel Jacobowitz <drow@false.org> | 2007-01-04 20:42:24 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2007-01-04 20:42:24 +0000 |
commit | 381bc39bef1c385aedff99db5d9eca044365670f (patch) | |
tree | d47ff1a7d768c6eb99e11c8ff3b0a72f901f7f84 /gdb/testsuite/gdb.base | |
parent | 2b70e4c68a110c247e835c214e8c35c0490cd7e9 (diff) | |
download | gdb-381bc39bef1c385aedff99db5d9eca044365670f.zip gdb-381bc39bef1c385aedff99db5d9eca044365670f.tar.gz gdb-381bc39bef1c385aedff99db5d9eca044365670f.tar.bz2 |
* gdb.base/charset.exp: Add explicit filename to break.
* gdb.base/dbx.exp: Add explicit filename to breaks.
Diffstat (limited to 'gdb/testsuite/gdb.base')
-rw-r--r-- | gdb/testsuite/gdb.base/charset.exp | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/dbx.exp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.base/charset.exp b/gdb/testsuite/gdb.base/charset.exp index 212f3b3..e5d8dfb 100644 --- a/gdb/testsuite/gdb.base/charset.exp +++ b/gdb/testsuite/gdb.base/charset.exp @@ -388,7 +388,7 @@ foreach host_charset [all_charset_names] { # some strings in various target character sets. We need to run the # test program to the point at which the strings have been # initialized. -gdb_test "break [gdb_get_line_number "all strings initialized"]" \ +gdb_test "break ${srcfile}:[gdb_get_line_number "all strings initialized"]" \ ".*Breakpoint.* at .*" \ "set breakpoint after all strings have been initialized" gdb_run_cmd diff --git a/gdb/testsuite/gdb.base/dbx.exp b/gdb/testsuite/gdb.base/dbx.exp index 98f4481..d2ebd57 100644 --- a/gdb/testsuite/gdb.base/dbx.exp +++ b/gdb/testsuite/gdb.base/dbx.exp @@ -266,8 +266,8 @@ proc gdb_file_cmd {arg} { proc test_breakpoints { } { gdb_test "stop in main" "Breakpoint.*at.*: file.*average\.c, line 38\." gdb_test "status" "Num.*Type.*Disp.*Enb.*Address.*What\r\n1\[ \r\]+breakpoint\[ \r\]+keep y.*in main at.*average\.c:38.*" - gdb_test "stop at 43" "Breakpoint.*at.*: file.*average\.c, line 43.*" - gdb_test "stop in 43" "Usage: stop in <function . address>" + gdb_test "stop at average.c:43" "Breakpoint.*at.*: file.*average\.c, line 43.*" + gdb_test "stop in average.c:43" "Usage: stop in <function . address>" gdb_test "stop at main" "Usage: stop at <line>" } |