aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2003-03-26 16:36:41 +0000
committerDaniel Jacobowitz <drow@false.org>2003-03-26 16:36:41 +0000
commit254787d4f39ad9ed70cdff2eae65dcc4df459cb5 (patch)
tree0e927c024b5ee2e247d955e488536b1aedaf2a37 /gdb/gdbserver
parent960cb5556f18d309e5ac4d082b76b281f5e27dd2 (diff)
downloadfsf-binutils-gdb-254787d4f39ad9ed70cdff2eae65dcc4df459cb5.zip
fsf-binutils-gdb-254787d4f39ad9ed70cdff2eae65dcc4df459cb5.tar.gz
fsf-binutils-gdb-254787d4f39ad9ed70cdff2eae65dcc4df459cb5.tar.bz2
* linux-low.c (linux_create_inferior): Use __SIGRTMIN.
(linux_wait_for_event, linux_init_signals): Likewise.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r--gdb/gdbserver/ChangeLog5
-rw-r--r--gdb/gdbserver/linux-low.c8
2 files changed, 9 insertions, 4 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index ec44b7c..63ec899 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,8 @@
+2003-03-26 Daniel Jacobowitz <drow@mvista.com>
+
+ * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
+ (linux_wait_for_event, linux_init_signals): Likewise.
+
2003-03-17 Daniel Jacobowitz <drow@mvista.com>
* configure.in: Check for stdlib.h.
diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c
index 2cb592a..95bf969 100644
--- a/gdb/gdbserver/linux-low.c
+++ b/gdb/gdbserver/linux-low.c
@@ -147,7 +147,7 @@ linux_create_inferior (char *program, char **allargs)
{
ptrace (PTRACE_TRACEME, 0, 0, 0);
- signal (SIGRTMIN + 1, SIG_DFL);
+ signal (__SIGRTMIN + 1, SIG_DFL);
setpgid (0, 0);
@@ -493,8 +493,8 @@ linux_wait_for_event (struct thread_info *child)
/* FIXME drow/2002-06-09: Get signal numbers from the inferior's
thread library? */
if (WIFSTOPPED (wstat)
- && (WSTOPSIG (wstat) == SIGRTMIN
- || WSTOPSIG (wstat) == SIGRTMIN + 1))
+ && (WSTOPSIG (wstat) == __SIGRTMIN
+ || WSTOPSIG (wstat) == __SIGRTMIN + 1))
{
if (debug_threads)
fprintf (stderr, "Ignored signal %d for %d (LWP %d).\n",
@@ -1248,7 +1248,7 @@ linux_init_signals ()
{
/* FIXME drow/2002-06-09: As above, we should check with LinuxThreads
to find what the cancel signal actually is. */
- signal (SIGRTMIN+1, SIG_IGN);
+ signal (__SIGRTMIN+1, SIG_IGN);
}
void