aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2010-01-20 18:22:48 +0000
committerDoug Evans <dje@google.com>2010-01-20 18:22:48 +0000
commit60c3d7b00b63c2268b9848d50fa960578a5a9a51 (patch)
treefbd0b74c81a3b10cb83991457902d87b8153784f /gdb
parentb966cb8abe34be31fae6aed3e6e9c9cc4c8696b2 (diff)
downloadgdb-60c3d7b00b63c2268b9848d50fa960578a5a9a51.zip
gdb-60c3d7b00b63c2268b9848d50fa960578a5a9a51.tar.gz
gdb-60c3d7b00b63c2268b9848d50fa960578a5a9a51.tar.bz2
* linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
#ifdef. (linux_wait_for_event1, linux_init_signals): Ditto.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/gdbserver/ChangeLog6
-rw-r--r--gdb/gdbserver/linux-low.c6
2 files changed, 11 insertions, 1 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index f947937..7b6c6fb 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,9 @@
+2010-01-20 Doug Evans <dje@google.com>
+
+ * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
+ #ifdef.
+ (linux_wait_for_event1, linux_init_signals): Ditto.
+
2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
* linux-low.c (linux_core_of_thread): New.
diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c
index 5584691..54e5658 100644
--- a/gdb/gdbserver/linux-low.c
+++ b/gdb/gdbserver/linux-low.c
@@ -498,7 +498,9 @@ linux_create_inferior (char *program, char **allargs)
{
ptrace (PTRACE_TRACEME, 0, 0, 0);
+#ifdef __SIGRTMIN /* Bionic doesn't use SIGRTMIN the way glibc does. */
signal (__SIGRTMIN + 1, SIG_DFL);
+#endif
setpgid (0, 0);
@@ -1209,7 +1211,7 @@ linux_wait_for_event_1 (ptid_t ptid, int *wstat, int options)
if (WIFSTOPPED (*wstat)
&& !event_child->stepping
&& (
-#ifdef USE_THREAD_DB
+#if defined (USE_THREAD_DB) && defined (__SIGRTMIN)
(current_process ()->private->thread_db != NULL
&& (WSTOPSIG (*wstat) == __SIGRTMIN
|| WSTOPSIG (*wstat) == __SIGRTMIN + 1))
@@ -3410,7 +3412,9 @@ linux_init_signals ()
{
/* FIXME drow/2002-06-09: As above, we should check with LinuxThreads
to find what the cancel signal actually is. */
+#ifdef __SIGRTMIN /* Bionic doesn't use SIGRTMIN the way glibc does. */
signal (__SIGRTMIN+1, SIG_IGN);
+#endif
}
void