* config/nm-linux.h: Do not include <signal.h>.

(REALTIME_LO, REALTIME_HI): Do not define.
	* signals/signals.c (REALTIME_HI): Fix off-by-one bug.
This commit is contained in:
Ulrich Weigand 2006-11-28 19:45:07 +00:00
parent 51b57b6b26
commit 0b75775590
3 changed files with 8 additions and 12 deletions

View File

@ -1,3 +1,9 @@
2006-11-28 Ulrich Weigand <uweigand@de.ibm.com>
* config/nm-linux.h: Do not include <signal.h>.
(REALTIME_LO, REALTIME_HI): Do not define.
* signals/signals.c (REALTIME_HI): Fix off-by-one bug.
2006-11-28 Vladimir Prus <vladimir@codesourcery.com>
* mi/mi-cmd-var.c (mi_cmd_var_create): Fix cleanup

View File

@ -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 <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
extern void lin_lwp_attach_lwp (ptid_t ptid, int verbose);
#define ATTACH_LWP(ptid, verbose) lin_lwp_attach_lwp ((ptid), (verbose))

View File

@ -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