aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/siginfo.exp
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-04-23 16:44:25 +0000
committerAndrew Cagney <cagney@redhat.com>2004-04-23 16:44:25 +0000
commit61bcae62f75a3075d4455ff3ba8204b50bfed75e (patch)
tree0a6178779d7597aea8e8b7314e64c14058544594 /gdb/testsuite/gdb.base/siginfo.exp
parent65951cd9b4d300b93ff7b7532a0a011cc0bfc495 (diff)
downloadgdb-61bcae62f75a3075d4455ff3ba8204b50bfed75e.zip
gdb-61bcae62f75a3075d4455ff3ba8204b50bfed75e.tar.gz
gdb-61bcae62f75a3075d4455ff3ba8204b50bfed75e.tar.bz2
2004-04-23 Andrew Cagney <cagney@redhat.com>
* gdb.base/siginfo.exp: Clean up step out of signal. * gdb.base/sigstep.exp: Ditto.
Diffstat (limited to 'gdb/testsuite/gdb.base/siginfo.exp')
-rw-r--r--gdb/testsuite/gdb.base/siginfo.exp13
1 files changed, 10 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.base/siginfo.exp b/gdb/testsuite/gdb.base/siginfo.exp
index f335bc7..a081ab8 100644
--- a/gdb/testsuite/gdb.base/siginfo.exp
+++ b/gdb/testsuite/gdb.base/siginfo.exp
@@ -83,9 +83,16 @@ gdb_test_multiple "step" "${test}" {
send_gdb "step\n"
exp_continue
}
- -re "return 0.*${gdb_prompt} $" {
- # Stepping out of a function GDB advances the inferior to the
- # start of the next line
+ -re "Program exited normally.*${gdb_prompt} $" {
+ kfail gdb/1613 "$test (program exited)"
+ }
+ -re "(while ..done|return 0).*${gdb_prompt} $" {
+ # After stepping out of a function /r signal-handler, GDB will
+ # advance the inferior until it is at the first instruction of
+ # a code-line. While typically things return to the middle of
+ # the "while..." (and hence GDB advances the inferior to the
+ # "return..." line) it is also possible for the return to land
+ # on the first instruction of "while...". Accept both cases.
pass "$test"
}
}