From: Corinna Vinschen Date: Wed, 18 Sep 2002 17:20:54 +0000 (+0000) Subject: * gdb.base/ending-run.exp: Add handling of "step to end of run" for X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=afb5c968b6cf516ce7ef786eec0def9a800f4b63;p=binutils-gdb.git * gdb.base/ending-run.exp: Add handling of "step to end of run" for embedded targets which never actually exit. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index e9249c132ef..0eed7b27830 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2002-09-18 Corinna Vinschen + + * gdb.base/ending-run.exp: Add handling of "step to end of run" for + embedded targets which never actually exit. + 2002-09-18 Fernando Nasser * gdb.base/ending-run.exp: Properly mark "continue after exit" and diff --git a/gdb/testsuite/gdb.base/ending-run.exp b/gdb/testsuite/gdb.base/ending-run.exp index 989406a9b23..f7e954f4aad 100644 --- a/gdb/testsuite/gdb.base/ending-run.exp +++ b/gdb/testsuite/gdb.base/ending-run.exp @@ -253,6 +253,9 @@ if {! [target_info exists use_gdb_stub] pass "step to end of run (status wrapper)" set program_exited_normally 1 } + -re "Single.*EXIT code 0\r\n.*$gdb_prompt $" { + pass "step to end of run (status wrapper)" + } -re ".*Single.*Program exited.*$gdb_prompt $" { pass "step to end of run" set program_exited_normally 1