From: Kevin Buettner Date: Tue, 22 May 2001 00:25:27 +0000 (+0000) Subject: * gdb.base/finish.exp (finish_void): Allow "finish" command to X-Git-Tag: dberlin-typesystem-branchpoint~489 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6b0b0a9efbc3f40fb6277e36b573b26ed0476b6b;p=external%2Fbinutils.git * gdb.base/finish.exp (finish_void): Allow "finish" command to stop on the call statement as well as the statement after the call. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 58a304c..06520ab 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2001-05-21 Kevin Buettner + + * gdb.base/finish.exp (finish_void): Allow "finish" command to + stop on the call statement as well as the statement after the + call. + 2001-05-10 Elena Zannoni * gdb.base/completion.exp: Revamp test. Make it execute on all diff --git a/gdb/testsuite/gdb.base/finish.exp b/gdb/testsuite/gdb.base/finish.exp index abb35ed..3e2c69f 100644 --- a/gdb/testsuite/gdb.base/finish.exp +++ b/gdb/testsuite/gdb.base/finish.exp @@ -77,10 +77,17 @@ proc finish_void { } { gdb_test "continue" "Breakpoint.* void_func.*" \ "continue to void_func" send_gdb "finish\n" + # Some architectures will have one or more instructions after the + # call instruction which still is part of the call sequence, so we + # must be prepared for a "finish" to show us the void_func call + # again as well as the statement after. gdb_expect { -re ".*void_checkpoint.*$gdb_prompt $" { pass "finish from void_func" } + -re ".*call to void_func.*$gdb_prompt $" { + pass "finish from void_func" + } -re ".*$gdb_prompt $" { fail "finish from void_func" }