* gdb.threads/attachstop-mt.exp: Add $srcfile to the linespecs.
authorTom Tromey <tromey@redhat.com>
Fri, 14 Oct 2011 16:05:05 +0000 (16:05 +0000)
committerTom Tromey <tromey@redhat.com>
Fri, 14 Oct 2011 16:05:05 +0000 (16:05 +0000)
* gdb.threads/attach-stopped.exp (corefunc): Add $srcfile to the
linespec.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.threads/attach-stopped.exp
gdb/testsuite/gdb.threads/attachstop-mt.exp

index 4303ccd4a376e87f6e950e961bae77b4182fb8ab..2786a53d48db239d60b40bdacd4bc3a6e37e1339 100644 (file)
@@ -1,3 +1,9 @@
+2011-10-14  Tom Tromey  <tromey@redhat.com>
+
+       * gdb.threads/attachstop-mt.exp: Add $srcfile to the linespecs.
+       * gdb.threads/attach-stopped.exp (corefunc): Add $srcfile to the
+       linespec.
+
 2011-10-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        Fix internal error regression.
index 5b5e82baf7f487fb2a6c5ee539438b5a322b68f7..08a943746d28ada885d5ea0d54b5d29254280903 100644 (file)
@@ -78,7 +78,7 @@ proc corefunc { threadtype } {
        gdb_test "bt" ".*sleep.*main.*" "$threadtype: attach2 to stopped bt"
     }
     # This breakpoint is there for old/non-x86 kernels not restarting syscalls.
-    gdb_breakpoint [gdb_get_line_number "Second sleep"]
+    gdb_breakpoint $srcfile:[gdb_get_line_number "Second sleep"]
     set test "$threadtype: attach2 continue"
     gdb_test_multiple "continue" "continue ($test)" {
        -re "Continuing" {
index c44b50f766da98d320d8020afb8f436a385cf59d..12bf960f307d2b2ec637eb9e2b4973000d66c0fc 100644 (file)
@@ -208,8 +208,8 @@ gdb_test "thread 2" ".*(witching to thread 2 |hread ID 2 not known).*" "attach4
 gdb_test "bt" ".*sleep.*(func|main).*" "attach4 to stopped bt"
 
 # RHEL3U8 kernel-2.4.21-47.EL will not return SIGINT but only shorten the sleep.
-gdb_breakpoint [gdb_get_line_number "Ridiculous time"]
-gdb_breakpoint [gdb_get_line_number "cut the sleep time"]
+gdb_breakpoint $srcfile:[gdb_get_line_number "Ridiculous time"]
+gdb_breakpoint $srcfile:[gdb_get_line_number "cut the sleep time"]
 set test "attach4 continue"
 gdb_test_multiple "continue" "continue ($test)" {
     -re "Continuing" {