* gdb.base/ending-run.exp: Add handling of "step to end of run" for
authorCorinna Vinschen <corinna@vinschen.de>
Wed, 18 Sep 2002 17:20:54 +0000 (17:20 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Wed, 18 Sep 2002 17:20:54 +0000 (17:20 +0000)
embedded targets which never actually exit.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/ending-run.exp

index e9249c132ef800adfe96975614710cfbdac4adf6..0eed7b278306de4a97c4ef39ff1bacd57ee7367b 100644 (file)
@@ -1,3 +1,8 @@
+2002-09-18  Corinna Vinschen  <vinschen@redhat.com>
+
+       * 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  <fnasser@redhat.com>
 
        * gdb.base/ending-run.exp: Properly mark "continue after exit" and
index 989406a9b238e8568d21855fca7cec0a9bcfdb96..f7e954f4aad670551aca3ffb7f6d568ea269f35c 100644 (file)
@@ -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