* 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
This commit is contained in:
parent
8a423cb3d6
commit
46711df821
11 changed files with 673 additions and 618 deletions
|
@ -1,3 +1,23 @@
|
|||
2001-08-23 Mark Kettenis <kettenis@gnu.org>
|
||||
|
||||
* 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
|
||||
|
||||
2001-08-26 Andrew Cagney <ac131313@redhat.com>
|
||||
|
||||
From 2001-06-29 Andrew Cagney <ac131313@redhat.com>:
|
||||
|
|
20
gdb/aclocal.m4
vendored
20
gdb/aclocal.m4
vendored
|
@ -1,4 +1,4 @@
|
|||
dnl aclocal.m4 generated automatically by aclocal 1.4
|
||||
dnl aclocal.m4 generated automatically by aclocal 1.4-p4
|
||||
|
||||
dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
|
||||
dnl This file is free software; the Free Software Foundation
|
||||
|
@ -912,6 +912,24 @@ else
|
|||
$1_FALSE=
|
||||
fi])
|
||||
|
||||
#serial 1
|
||||
# This test replaces the one in autoconf.
|
||||
# Currently this macro should have the same name as the autoconf macro
|
||||
# because gettext's gettext.m4 (distributed in the automake package)
|
||||
# still uses it. Otherwise, the use in gettext.m4 makes autoheader
|
||||
# give these diagnostics:
|
||||
# configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX
|
||||
# configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX
|
||||
|
||||
undefine([AC_ISC_POSIX])
|
||||
|
||||
AC_DEFUN([AC_ISC_POSIX],
|
||||
[
|
||||
dnl This test replaces the obsolescent AC_ISC_POSIX kludge.
|
||||
AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"])
|
||||
]
|
||||
)
|
||||
|
||||
|
||||
# serial 1
|
||||
|
||||
|
|
|
@ -41,9 +41,6 @@
|
|||
/* Define to `int' if <sys/types.h> doesn't define. */
|
||||
#undef pid_t
|
||||
|
||||
/* Define if you need to in order for stat and other things to work. */
|
||||
#undef _POSIX_SOURCE
|
||||
|
||||
/* Define as the return type of signal handlers (int or void). */
|
||||
#undef RETSIGTYPE
|
||||
|
||||
|
@ -244,6 +241,9 @@
|
|||
/* Define if you have the sigprocmask function. */
|
||||
#undef HAVE_SIGPROCMASK
|
||||
|
||||
/* Define if you have the sigsetmask function. */
|
||||
#undef HAVE_SIGSETMASK
|
||||
|
||||
/* Define if you have the socketpair function. */
|
||||
#undef HAVE_SOCKETPAIR
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* Host definitions for GDB running on an Alpha under Linux
|
||||
Copyright 1996 Free Software Foundation, Inc.
|
||||
Copyright 1996, 2001 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GDB.
|
||||
|
||||
|
@ -26,5 +26,4 @@
|
|||
#define NO_SIGINTERRUPT
|
||||
|
||||
#define HAVE_TERMIOS
|
||||
#define HAVE_SIGSETMASK 1
|
||||
#define USG
|
||||
|
|
|
@ -27,8 +27,6 @@
|
|||
/* Define this if source files use \r\n rather than just \n. */
|
||||
#define CRLF_SOURCE_FILES
|
||||
|
||||
#define HAVE_SIGSETMASK 0
|
||||
|
||||
/* If under Cygwin, provide backwards compatibility with older
|
||||
Cygwin compilers that don't define the current cpp define. */
|
||||
#ifdef __CYGWIN32__
|
||||
|
|
|
@ -44,7 +44,6 @@
|
|||
/* #define HAVE_TERMIO 1 */
|
||||
|
||||
#define USG 1
|
||||
#define HAVE_SIGSETMASK 1
|
||||
|
||||
#define FIVE_ARG_PTRACE
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* Parameters for hosting on an PowerPC, for GDB, the GNU debugger.
|
||||
Copyright 1995, 1996, 1998, 1999, 2000 Free Software Foundation, Inc.
|
||||
Copyright 1995, 1996, 1998, 1999, 2000, 2001
|
||||
Free Software Foundation, Inc.
|
||||
Contributed by Cygnus Corporation.
|
||||
|
||||
This file is part of GDB.
|
||||
|
@ -43,7 +44,6 @@
|
|||
/* #define HAVE_TERMIO 1 */
|
||||
|
||||
#define USG 1
|
||||
#define HAVE_SIGSETMASK 1
|
||||
|
||||
#define FIVE_ARG_PTRACE
|
||||
|
||||
|
|
1205
gdb/configure
vendored
1205
gdb/configure
vendored
File diff suppressed because it is too large
Load diff
|
@ -131,9 +131,10 @@ AC_HEADER_STAT
|
|||
|
||||
AC_C_CONST
|
||||
|
||||
AC_CHECK_FUNCS(setpgid setpgrp sbrk sigaction isascii bzero bcopy btowc poll sigprocmask)
|
||||
AC_FUNC_VFORK
|
||||
AC_CHECK_FUNCS(bcopy btowc bzero isascii poll sbrk setpgid setpgrp \
|
||||
sigaction sigprocmask sigsetmask)
|
||||
AC_FUNC_ALLOCA
|
||||
AC_FUNC_VFORK
|
||||
dnl AC_FUNC_SETPGRP does not work when cross compiling
|
||||
dnl Instead, assume we will have a prototype for setpgrp if cross compiling.
|
||||
if test "$cross_compiling" = no; then
|
||||
|
|
|
@ -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);
|
||||
|
|
22
gdb/top.c
22
gdb/top.c
|
@ -178,19 +178,6 @@ static void stop_sig (int);
|
|||
#endif
|
||||
#endif
|
||||
|
||||
/* Some System V have job control but not sigsetmask(). */
|
||||
#if !defined (HAVE_SIGSETMASK)
|
||||
#if !defined (USG)
|
||||
#define HAVE_SIGSETMASK 1
|
||||
#else
|
||||
#define HAVE_SIGSETMASK 0
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if 0 == (HAVE_SIGSETMASK)
|
||||
#define sigsetmask(n)
|
||||
#endif
|
||||
|
||||
/* Hooks for alternate command interfaces. */
|
||||
|
||||
/* Called after most modules have been initialized, but before taking users
|
||||
|
@ -922,7 +909,16 @@ stop_sig (int signo)
|
|||
{
|
||||
#if STOP_SIGNAL == SIGTSTP
|
||||
signal (SIGTSTP, SIG_DFL);
|
||||
#if HAVE_SIGPROCMASK
|
||||
{
|
||||
sigset_t zero;
|
||||
|
||||
sigemptyset (&zero);
|
||||
sigprocmask (SIG_SETMASK, &zero, 0);
|
||||
}
|
||||
#elif HAVE_SIGSETMASK
|
||||
sigsetmask (0);
|
||||
#endif
|
||||
kill (getpid (), SIGTSTP);
|
||||
signal (SIGTSTP, stop_sig);
|
||||
#else
|
||||
|
|
Loading…
Reference in a new issue