diff options
author | Tom Tromey <tromey@redhat.com> | 2011-10-14 16:05:05 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2011-10-14 16:05:05 +0000 |
commit | 55b1fd0ca04b1352a0d3048cc4df6aa6cd56e845 (patch) | |
tree | 6280df2d5e3f9613e6a8c4b9de94583f928a63c6 /gdb | |
parent | 3957565a968c5eacb611940a2146fd4491d584c1 (diff) | |
download | gdb-55b1fd0ca04b1352a0d3048cc4df6aa6cd56e845.zip gdb-55b1fd0ca04b1352a0d3048cc4df6aa6cd56e845.tar.gz gdb-55b1fd0ca04b1352a0d3048cc4df6aa6cd56e845.tar.bz2 |
* gdb.threads/attachstop-mt.exp: Add $srcfile to the linespecs.
* gdb.threads/attach-stopped.exp (corefunc): Add $srcfile to the
linespec.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/testsuite/gdb.threads/attach-stopped.exp | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.threads/attachstop-mt.exp | 4 |
3 files changed, 9 insertions, 3 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 4303ccd..2786a53 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -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. diff --git a/gdb/testsuite/gdb.threads/attach-stopped.exp b/gdb/testsuite/gdb.threads/attach-stopped.exp index 5b5e82b..08a9437 100644 --- a/gdb/testsuite/gdb.threads/attach-stopped.exp +++ b/gdb/testsuite/gdb.threads/attach-stopped.exp @@ -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" { diff --git a/gdb/testsuite/gdb.threads/attachstop-mt.exp b/gdb/testsuite/gdb.threads/attachstop-mt.exp index c44b50f..12bf960 100644 --- a/gdb/testsuite/gdb.threads/attachstop-mt.exp +++ b/gdb/testsuite/gdb.threads/attachstop-mt.exp @@ -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" { |