From ae5622b4c475c426e224842afb06abab20f1c312 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Wed, 11 Jul 2001 08:15:36 +0000 Subject: [PATCH] * config/tm-linux.h: Do not include . Instead provide reasonable defaults for REALTIME_LO and REALTIME_HI if they're not already defined. * config/nm-linux.h: Include . [__SIGRTMIN] (REALTIME_LO, REALTIME_HI): Define to __SIGRTMIN and (__SIGRTMAX + 1) respectively. --- gdb/ChangeLog | 9 +++++++++ gdb/config/nm-linux.h | 12 +++++++++++- gdb/config/tm-linux.h | 13 +++++-------- 3 files changed, 25 insertions(+), 9 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index bf8c5109a5..f946cce804 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,12 @@ +2001-07-11 Mark Kettenis + + * config/tm-linux.h: Do not include . Instead provide + reasonable defaults for REALTIME_LO and REALTIME_HI if they're not + already defined. + * config/nm-linux.h: Include . + [__SIGRTMIN] (REALTIME_LO, REALTIME_HI): Define to __SIGRTMIN and + (__SIGRTMAX + 1) respectively. + 2001-07-10 Andrew Cagney * mcore-rom.c: Include "serial.h". diff --git a/gdb/config/nm-linux.h b/gdb/config/nm-linux.h index f1e785c95e..34840e43dc 100644 --- a/gdb/config/nm-linux.h +++ b/gdb/config/nm-linux.h @@ -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 + to find the range of real-time signals. */ + +#include + +#ifdef __SIGRTMIN +#define REALTIME_LO __SIGRTMIN +#define REALTIME_HI (__SIGRTMAX + 1) +#endif diff --git a/gdb/config/tm-linux.h b/gdb/config/tm-linux.h index 21ff4ef2e8..938987270b 100644 --- a/gdb/config/tm-linux.h +++ b/gdb/config/tm-linux.h @@ -19,15 +19,12 @@ 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 - -#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 -- 2.11.0