aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/sigall.exp
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1995-01-12 20:12:07 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1995-01-12 20:12:07 +0000
commit592355645ce3615f0972c9696c19fcb6e400997e (patch)
tree294a596cafbee1a2edcbb4dca8100eb4c1d33418 /gdb/testsuite/gdb.base/sigall.exp
parentb69fe36371fecce6c41d694c8c923f8eff82e987 (diff)
downloadgdb-592355645ce3615f0972c9696c19fcb6e400997e.zip
gdb-592355645ce3615f0972c9696c19fcb6e400997e.tar.gz
gdb-592355645ce3615f0972c9696c19fcb6e400997e.tar.bz2
* gdb.base/sigall.c (gen_*): Pass argument to handle_* to avoid
compiler warning with dec alpha compiler. * gdb.base/commands.exp (if_while_breakpoint_command_test): Remove extra \n from gdb_test call (this explains why the prompt test that I removed yesterday was there). (user_defined_command_test): Remove extra \n and prompt test. * gdb.base/sigall.c: If SIGABRT == SIGLOST, just act as if SIGLOST doesn't exist. Likewise if SIGIO == SIGPOLL, pretend SIGPOLL doesn't exist. * gdb.base/sigall.exp: Remove special handling for SIGIO and SIGPOLL. Also remove alpha workaround, which turns out to be because SIGABRT == SIGLOST.
Diffstat (limited to 'gdb/testsuite/gdb.base/sigall.exp')
-rw-r--r--gdb/testsuite/gdb.base/sigall.exp31
1 files changed, 2 insertions, 29 deletions
diff --git a/gdb/testsuite/gdb.base/sigall.exp b/gdb/testsuite/gdb.base/sigall.exp
index 3f3bab6..10de1aa 100644
--- a/gdb/testsuite/gdb.base/sigall.exp
+++ b/gdb/testsuite/gdb.base/sigall.exp
@@ -44,32 +44,12 @@ proc test_one_sig {nextsig} {
gdb_test "b handle_$thissig" "Breakpoint \[0-9\]"
gdb_test "b gen_$nextsig" "Breakpoint \[0-9\]"
if $this_sig_supported then {
- if {"$thissig" == "POLL"} then {
- # If SIGIO and SIGPOLL are the same signal it gets reported
- # as SIGIO; it is a feature for GDB to always use the "preferred"
- # name (the POSIX name if there is one, etc.); I suspect that is
- # SIGIO in this case but I'm not sure.
- set pattern "(POLL|IO)"
- } else {
- set pattern $thissig
- }
gdb_test "continue" \
- "Continuing.*Program received signal SIG$pattern" \
+ "Continuing.*Program received signal SIG$thissig" \
"get signal $thissig"
}
- if {"$thissig" == "IO"} then {
- # SIGIO and SIGPOLL might be the same signal.
- # If so we end up at handle_POLL because we
- # establish the handler for SIGPOLL after SIGIO.
- set pattern "Breakpoint.*handle_(POLL|IO)"
- } else {
- set pattern "Breakpoint.*handle_$thissig"
- }
- # On the alpha we don't end up in handle_ABRT. I don't know why.
- if {"$thissig" != "ABRT" || ![istarget "*-*-osf*"]} then {
- gdb_test "continue" $pattern "send signal $thissig"
- }
+ gdb_test "continue" "Breakpoint.*handle_$thissig" "send signal $thissig"
send "continue\n"
expect {
@@ -107,13 +87,6 @@ test_one_sig CHLD
test_one_sig TTIN
test_one_sig TTOU
test_one_sig IO
-
-# Set an extra breakpoint at handle_POLL, to deal with the fact that
-# SIGIO and SIGPOLL might be the same signal.
-
-gdb_test "b handle_POLL" "Breakpoint \[0-9\]" \
- "set extra handle_POLL breakpoint"
-
test_one_sig XCPU
test_one_sig XFSZ
test_one_sig VTALRM