diff options
author | Daniel Jacobowitz <drow@false.org> | 2006-02-20 17:01:28 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2006-02-20 17:01:28 +0000 |
commit | 17fbb0bdc7f49801a09bffc483ccd1fd5ab21403 (patch) | |
tree | e4735d241a21075fe5734b75aa0fd9c88f163763 /gdb/linux-nat.c | |
parent | 444abacaac2e6ce05283dff0f7d9154d3877f616 (diff) | |
download | gdb-17fbb0bdc7f49801a09bffc483ccd1fd5ab21403.zip gdb-17fbb0bdc7f49801a09bffc483ccd1fd5ab21403.tar.gz gdb-17fbb0bdc7f49801a09bffc483ccd1fd5ab21403.tar.bz2 |
* linux-nat.c (lin_thread_get_thread_signals): Default to __SIGRTMIN
and __SIGRTMIN + 1.
Diffstat (limited to 'gdb/linux-nat.c')
-rw-r--r-- | gdb/linux-nat.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index b089432..0710ac7 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); |