From: Ulrich Weigand Date: Tue, 28 Nov 2006 19:45:07 +0000 (+0000) Subject: * config/nm-linux.h: Do not include . X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0b75775590156c3315ee61078f8da440bcc78153;p=binutils-gdb.git * config/nm-linux.h: Do not include . (REALTIME_LO, REALTIME_HI): Do not define. * signals/signals.c (REALTIME_HI): Fix off-by-one bug. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3f50bca4278..a1fed961d00 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2006-11-28 Ulrich Weigand + + * config/nm-linux.h: Do not include . + (REALTIME_LO, REALTIME_HI): Do not define. + * signals/signals.c (REALTIME_HI): Fix off-by-one bug. + 2006-11-28 Vladimir Prus * mi/mi-cmd-var.c (mi_cmd_var_create): Fix cleanup diff --git a/gdb/config/nm-linux.h b/gdb/config/nm-linux.h index b866ea45526..b79875eb680 100644 --- a/gdb/config/nm-linux.h +++ b/gdb/config/nm-linux.h @@ -25,16 +25,6 @@ struct target_ops; /* GNU/Linux is SVR4-ish but its /proc file system isn't. */ #undef USE_PROC_FS -/* 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 - extern void lin_lwp_attach_lwp (ptid_t ptid, int verbose); #define ATTACH_LWP(ptid, verbose) lin_lwp_attach_lwp ((ptid), (verbose)) diff --git a/gdb/signals/signals.c b/gdb/signals/signals.c index cc7ab806fed..63eb333c487 100644 --- a/gdb/signals/signals.c +++ b/gdb/signals/signals.c @@ -37,10 +37,10 @@ #ifndef REALTIME_LO # if defined(__SIGRTMIN) # define REALTIME_LO __SIGRTMIN -# define REALTIME_HI __SIGRTMAX +# define REALTIME_HI (__SIGRTMAX + 1) # elif defined(SIGRTMIN) # define REALTIME_LO SIGRTMIN -# define REALTIME_HI SIGRTMAX +# define REALTIME_HI (SIGRTMAX + 1) # endif #endif