diff options
author | Michael Snyder <msnyder@vmware.com> | 2010-05-26 18:05:25 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2010-05-26 18:05:25 +0000 |
commit | 6acb16a2933eda8acd00095c425e32cf5ef171cb (patch) | |
tree | de3d1b0b64286b4a9712054e1a7e1b2d84228564 /gdb/testsuite/gdb.base/attach.exp | |
parent | dfc8cf43a16e6e304c311bad583594485657cf8a (diff) | |
download | gdb-6acb16a2933eda8acd00095c425e32cf5ef171cb.zip gdb-6acb16a2933eda8acd00095c425e32cf5ef171cb.tar.gz gdb-6acb16a2933eda8acd00095c425e32cf5ef171cb.tar.bz2 |
2010-05-25 Michael Snyder <msnyder@vmware.com>
* gdb.ada/formatted_ref.exp: Replace send_gdb with gdb_test.
* gdb.asm/asm-source.exp: Replace send_gdb with gdb_test.
* gdb.base/a2-run.exp: Replace send_gdb with gdb_test.
* gdb.base/all-bin.exp: Replace send_gdb with gdb_test.
* gdb.base/annota1.exp: Replace send_gdb with gdb_test.
* gdb.base/annota3.exp: Replace send_gdb with gdb_test.
* gdb.base/assign.exp: Replace send_gdb with gdb_test.
* gdb.base/attach.exp: Replace send_gdb with gdb_test.
* gdb.base/bitfields.exp: Replace send_gdb with gdb_test.
* gdb.base/bitfields2.exp: Replace send_gdb with gdb_test.
* gdb.base/bitops.exp: Replace send_gdb with gdb_test.
Diffstat (limited to 'gdb/testsuite/gdb.base/attach.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/attach.exp | 29 |
1 files changed, 5 insertions, 24 deletions
diff --git a/gdb/testsuite/gdb.base/attach.exp b/gdb/testsuite/gdb.base/attach.exp index b19e74b..0d0d849 100644 --- a/gdb/testsuite/gdb.base/attach.exp +++ b/gdb/testsuite/gdb.base/attach.exp @@ -250,30 +250,11 @@ proc do_attach_tests {} { # Verify that the modification really happened. - send_gdb "tbreak 19\n" - gdb_expect { - -re "Temporary breakpoint .*at.*$srcfile, line 19.*$gdb_prompt $" { - pass "after attach2, set tbreak postloop" - } - -re "$gdb_prompt $" { - fail "after attach2, set tbreak postloop" - } - timeout { - fail "(timeout) after attach2, set tbreak postloop" - } - } - send_gdb "continue\n" - gdb_expect { - -re "main.*at.*$srcfile:19.*$gdb_prompt $" { - pass "after attach2, reach tbreak postloop" - } - -re "$gdb_prompt $" { - fail "after attach2, reach tbreak postloop" - } - timeout { - fail "(timeout) after attach2, reach tbreak postloop" - } - } + gdb_test "tbreak 19" "Temporary breakpoint .*at.*$srcfile, line 19.*" \ + "after attach2, set tbreak postloop" + + gdb_test "continue" "main.*at.*$srcfile:19.*" \ + "after attach2, reach tbreak postloop" # Allow the test process to exit, to cleanup after ourselves. |