* linux-nat.c (lin_thread_get_thread_signals): Default to __SIGRTMIN
authorDaniel Jacobowitz <drow@false.org>
Mon, 20 Feb 2006 17:01:28 +0000 (17:01 +0000)
committerDaniel Jacobowitz <drow@false.org>
Mon, 20 Feb 2006 17:01:28 +0000 (17:01 +0000)
and __SIGRTMIN + 1.

gdb/ChangeLog
gdb/linux-nat.c

index 56ed6c0803b8c228c161c7a4ff4eb882e2bdc235..105fbd9336ff5690b4ad0d104bc9e3896b188f1d 100644 (file)
@@ -1,3 +1,8 @@
+2006-02-20  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * linux-nat.c (lin_thread_get_thread_signals): Default to __SIGRTMIN
+       and __SIGRTMIN + 1.
+
 2006-02-20  Daniel Jacobowitz  <dan@codesourcery.com>
 
        * remote.c: Add an enumeration for configurable remote
index b08943298b64b68794f47f321f2b79fc7c3c7342..0710ac718acbbadee3883b8999b6f849cd733cbe 100644 (file)
@@ -3413,12 +3413,18 @@ lin_thread_get_thread_signals (sigset_t *set)
   sigemptyset (set);
 
   restart = get_signo ("__pthread_sig_restart");
+  cancel = get_signo ("__pthread_sig_cancel");
+
+  /* LinuxThreads normally uses the first two RT signals, but in some legacy
+     cases may use SIGUSR1/SIGUSR2.  NPTL always uses RT signals, but does
+     not provide any way for the debugger to query the signal numbers -
+     fortunately they don't change!  */
+
   if (restart == 0)
-    return;
+    restart = __SIGRTMIN;
 
-  cancel = get_signo ("__pthread_sig_cancel");
   if (cancel == 0)
-    return;
+    cancel = __SIGRTMIN + 1;
 
   sigaddset (set, restart);
   sigaddset (set, cancel);
This page took 0.027783 seconds and 4 git commands to generate.