From b95697738e1779fa6f9d337ec5a83cd5be6ba8dd Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Tue, 17 Apr 2001 19:14:54 +0000 Subject: [PATCH] 2001-04-17 Michael Snyder * thread-db.c (check_thread_signals): When looping over all signals, ignore signal zero. (disable_thread_signals): Ditto. --- gdb/ChangeLog | 6 ++++++ gdb/thread-db.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a604d4c12d7..d5d4d49a9e9 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2001-04-17 Michael Snyder + + * thread-db.c (check_thread_signals): When looping over all + signals, ignore signal zero. + (disable_thread_signals): Ditto. + 2001-04-17 Eirik Fuller * thread.c (do_captured_thread_select): Allow the argument to the diff --git a/gdb/thread-db.c b/gdb/thread-db.c index 956d0d813b7..e35775173e7 100644 --- a/gdb/thread-db.c +++ b/gdb/thread-db.c @@ -469,7 +469,7 @@ check_thread_signals (void) sigemptyset (&thread_stop_set); sigemptyset (&thread_print_set); - for (i = 0; i < NSIG; i++) + for (i = 1; i < NSIG; i++) { if (sigismember (&mask, i)) { @@ -492,7 +492,7 @@ disable_thread_signals (void) { int i; - for (i = 0; i < NSIG; i++) + for (i = 1; i < NSIG; i++) { if (sigismember (&thread_stop_set, i)) signal_stop_update (target_signal_from_host (i), 1); -- 2.30.2