* config/tm-linux.h: Do not include <signal.h>. Instead provide
authorMark Kettenis <kettenis@gnu.org>
Wed, 11 Jul 2001 08:15:36 +0000 (08:15 +0000)
committerMark Kettenis <kettenis@gnu.org>
Wed, 11 Jul 2001 08:15:36 +0000 (08:15 +0000)
reasonable defaults for REALTIME_LO and REALTIME_HI if they're not
already defined.
* config/nm-linux.h: Include <signal.h>.
[__SIGRTMIN] (REALTIME_LO, REALTIME_HI): Define to __SIGRTMIN and
(__SIGRTMAX + 1) respectively.

gdb/ChangeLog
gdb/config/nm-linux.h
gdb/config/tm-linux.h

index bf8c5109a5dadef637ba7fc83d4362597c0926bc..f946cce80409f4c93d89599e4b60562216730b74 100644 (file)
@@ -1,3 +1,12 @@
+2001-07-11  Mark Kettenis  <kettenis@gnu.org>
+
+       * config/tm-linux.h: Do not include <signal.h>.  Instead provide
+       reasonable defaults for REALTIME_LO and REALTIME_HI if they're not
+       already defined.
+       * config/nm-linux.h: Include <signal.h>.
+       [__SIGRTMIN] (REALTIME_LO, REALTIME_HI): Define to __SIGRTMIN and
+       (__SIGRTMAX + 1) respectively.
+
 2001-07-10  Andrew Cagney  <ac131313@redhat.com>
 
        * mcore-rom.c: Include "serial.h".
index f1e785c95e73211dd519ea55b5d08a1b17f1d5c4..34840e43dceb14c72e11f988ca50b25163ddb103 100644 (file)
@@ -1,4 +1,4 @@
-/* Native support for GNU/Linux, for GDB, the GNU debugger.
+/* Native support for GNU/Linux.
    Copyright 1999, 2000
    Free Software Foundation, Inc.
 
@@ -54,3 +54,13 @@ extern int linuxthreads_prepare_to_proceed (int step);
 
 #define GDB_GREGSET_T  elf_gregset_t
 #define GDB_FPREGSET_T elf_fpregset_t
+
+/* Since we're building a native debugger, we can include <signal.h>
+   to find the range of real-time signals.  */
+
+#include <signal.h>
+
+#ifdef __SIGRTMIN
+#define REALTIME_LO    __SIGRTMIN
+#define REALTIME_HI    (__SIGRTMAX + 1)
+#endif
index 21ff4ef2e8296fccbc6afcb903569c39edc5e226..938987270b706a553fe993d53b6ab6e9e7025d10 100644 (file)
    Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
-/* Some versions of Linux have real-time signal support in the C library, and
-   some don't.  We have to include this file to find out.  */
-#include <signal.h>
-
-#ifdef __SIGRTMIN
-#define REALTIME_LO __SIGRTMIN
-#define REALTIME_HI (__SIGRTMAX + 1)
-#else
+/* Pick reasonable defaults for the number of real-time signals.  */
+
+#ifndef REALTIME_LO
 #define REALTIME_LO 32
+#endif
+#ifndef REALTIME_HI
 #define REALTIME_HI 64
 #endif
 
This page took 0.030999 seconds and 4 git commands to generate.