diff options
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 b19e74bd8d..0d0d8496a8 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. |