mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
* linux-nat.c (lin_thread_get_thread_signals): Default to __SIGRTMIN
and __SIGRTMIN + 1.
This commit is contained in:
@@ -3413,12 +3413,18 @@ lin_thread_get_thread_signals (sigset_t *set)
|
||||
sigemptyset (set);
|
||||
|
||||
restart = get_signo ("__pthread_sig_restart");
|
||||
if (restart == 0)
|
||||
return;
|
||||
|
||||
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)
|
||||
restart = __SIGRTMIN;
|
||||
|
||||
if (cancel == 0)
|
||||
return;
|
||||
cancel = __SIGRTMIN + 1;
|
||||
|
||||
sigaddset (set, restart);
|
||||
sigaddset (set, cancel);
|
||||
|
||||
Reference in New Issue
Block a user