aboutsummaryrefslogtreecommitdiff
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
parentae712b42719b77454b14fbb14243d93710125fb3 (diff)
downloadgdb-4b071aec1341bb19f68dc5c953a51cd0d7f73d61.zip
gdb-4b071aec1341bb19f68dc5c953a51cd0d7f73d61.tar.gz
gdb-4b071aec1341bb19f68dc5c953a51cd0d7f73d61.tar.bz2
* gdb.base/sigall.c (main): Ensure all signals aren't blocked.
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.base/sigall.c12
2 files changed, 16 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 68e581b..10e4a03 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2008-02-02 Doug Evans <dje@google.com>
+
+ * gdb.base/sigall.c (main): Ensure all signals aren't blocked.
+
2007-02-01 Joel Brobecker <brobecker@adacore.com>
* gdb.ada/sym_print_name: New test program.
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);