From: Doug Evans Date: Sun, 3 Feb 2008 00:42:55 +0000 (+0000) Subject: * gdb.base/sigall.c (main): Ensure all signals aren't blocked. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4b071aec1341bb19f68dc5c953a51cd0d7f73d61;p=binutils-gdb.git * gdb.base/sigall.c (main): Ensure all signals aren't blocked. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 68e581b7bce..10e4a03d627 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2008-02-02 Doug Evans + + * gdb.base/sigall.c (main): Ensure all signals aren't blocked. + 2007-02-01 Joel Brobecker * 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 30d06f367d3..28ae192ebb3 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);