summaryrefslogtreecommitdiff
path: root/gdb/event-top.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2001-08-27 22:39:56 +0000
committerMark Kettenis <kettenis@gnu.org>2001-08-27 22:39:56 +0000
commitdfbd73589ebef873cfc401cba17c7792b0aa26de (patch)
tree40dde8dcb8780ff0cade998857c37c23361097fa /gdb/event-top.c
parent039a0a12de76b9aa7c1a99de786798b62374a047 (diff)
downloadgdb-dfbd73589ebef873cfc401cba17c7792b0aa26de.tar.gz
* event-top.c (async_stop_sig) [HAVE_SIGPROCMASK]: Some
gratuitious whitespace changes. [!HAVE_SIGPROCMASK]: Call sigsetmask if HAVE_SIGSETMASK is defined. * top.c: Remove redundant logic to define HAVE_SIGSETMASK. (sigsetmask) Don't define macro. (stop_sig) [HAVE_SIGPROCMASK]: Add bit of code snatched from async_stop_sig from event-top.c. [!HAVE_SIGPROCMASK]: Call sigsetmask if HAVE_SIGSETMASK is defined. * configure.in (AC_CHECK_FUNCS): Put functions in alphabetical order. Add sigsetmask. (AC_FUNC_VFORK, AC_FUNC_ALLOCA): Reorder such that they're in alphabetical order. * config/xm-aix4.h, config/alpha/xm-alphalinux.h, config/i386/xm-cygwin.h, config/rs6000/xm-rs6000.h (HAVE_SIGSETMASK): Remove. * aclocal.m4, config.in, configure
Diffstat (limited to 'gdb/event-top.c')
-rw-r--r--gdb/event-top.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/event-top.c b/gdb/event-top.c
index 2519aae1928..e76f08728c9 100644
--- a/gdb/event-top.c
+++ b/gdb/event-top.c
@@ -1042,10 +1042,11 @@ async_stop_sig (gdb_client_data arg)
#if HAVE_SIGPROCMASK
{
sigset_t zero;
+
sigemptyset (&zero);
sigprocmask (SIG_SETMASK, &zero, 0);
}
-#else
+#elif HAVE_SIGSETMASK
sigsetmask (0);
#endif
kill (getpid (), SIGTSTP);