diff options
author | Daniel Jacobowitz <dan@debian.org> | 2006-02-20 17:01:28 +0000 |
---|---|---|
committer | Daniel Jacobowitz <dan@debian.org> | 2006-02-20 17:01:28 +0000 |
commit | 9b7c0e9912364a3b7fe4ee20fa280fc978ca9262 (patch) | |
tree | f9d3c21913b579e557f4283c16585a7723de56d6 | |
parent | a4ace61d59d970d0c01baa30a1f4a2d74c8a87ae (diff) | |
download | gdb-9b7c0e9912364a3b7fe4ee20fa280fc978ca9262.tar.gz |
* linux-nat.c (lin_thread_get_thread_signals): Default to __SIGRTMIN
and __SIGRTMIN + 1.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/linux-nat.c | 12 |
2 files changed, 14 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 56ed6c0803b..105fbd9336f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 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 packets. (remote_protocol_packets, set_remote_protocol_packet_cmd) diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index b08943298b6..0710ac718ac 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -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); |