* gdb.base/charset.exp: Add explicit filename to break.
authorDaniel Jacobowitz <drow@false.org>
Thu, 4 Jan 2007 20:42:24 +0000 (20:42 +0000)
committerDaniel Jacobowitz <drow@false.org>
Thu, 4 Jan 2007 20:42:24 +0000 (20:42 +0000)
* gdb.base/dbx.exp: Add explicit filename to breaks.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/charset.exp
gdb/testsuite/gdb.base/dbx.exp

index 1738cb640b0f26c57ed59d9ea7968a8b3851128c..2ee358fbaa4690a56cc2f44e0b3a167aaa554686 100644 (file)
@@ -1,3 +1,8 @@
+2007-01-04  Pedro Alves  <pedro_alves@portugalmail.pt>
+
+       * gdb.base/charset.exp: Add explicit filename to break.
+       * gdb.base/dbx.exp: Add explicit filename to breaks.
+
 2007-01-04  Pedro Alves  <pedro_alves@portugalmail.pt>
 
        * gdb.mi/mi-file.exp: Use mi_gdb_file_cmd instead of mi_gdb_load.
index 212f3b3c509d26eb4fee623aab41665d1d1f61d6..e5d8dfb9c29898f2ad9310c0dc10871cac399202 100644 (file)
@@ -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
index 98f448192fd76c4993fbe27aa928dfd2f8eca6e2..d2ebd579244b2e40cdca4a9132d5f4ab61bf2260 100644 (file)
@@ -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>"
 }
 
This page took 0.036997 seconds and 4 git commands to generate.