aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/sigall.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2008-02-03 00:42:55 +0000
committerDoug Evans <dje@google.com>2008-02-03 00:42:55 +0000
commit4b071aec1341bb19f68dc5c953a51cd0d7f73d61 (patch)
treedf7f35a0657e9ee77f137e3e94059ab5724693aa /gdb/testsuite/gdb.base/sigall.c
parentae712b42719b77454b14fbb14243d93710125fb3 (diff)
downloadgdb-4b071aec1341bb19f68dc5c953a51cd0d7f73d61.zip
gdb-4b071aec1341bb19f68dc5c953a51cd0d7f73d61.tar.gz
gdb-4b071aec1341bb19f68dc5c953a51cd0d7f73d61.tar.bz2
* gdb.base/sigall.c (main): Ensure all signals aren't blocked.
Diffstat (limited to 'gdb/testsuite/gdb.base/sigall.c')
-rw-r--r--gdb/testsuite/gdb.base/sigall.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/sigall.c b/gdb/testsuite/gdb.base/sigall.c
index 30d06f3..28ae192 100644
--- a/gdb/testsuite/gdb.base/sigall.c
+++ b/gdb/testsuite/gdb.base/sigall.c
@@ -1581,6 +1581,18 @@ main ()
set_debug_traps ();
breakpoint ();
#endif
+
+#ifdef SIG_SETMASK
+ /* Ensure all the signals aren't blocked.
+ The environment in which the testsuite is run may have blocked some
+ for whatever reason. */
+ {
+ sigset_t newset;
+ sigemptyset (&newset);
+ sigprocmask (SIG_SETMASK, &newset, NULL);
+ }
+#endif
+
signal (SIGABRT, handle_ABRT);
#ifdef SIGHUP
signal (SIGHUP, handle_HUP);