diff options
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/thread-db.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a604d4c..d5d4d49 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2001-04-17 Michael Snyder <msnyder@redhat.com> + + * thread-db.c (check_thread_signals): When looping over all + signals, ignore signal zero. + (disable_thread_signals): Ditto. + 2001-04-17 Eirik Fuller <eirik@netapp.com> * thread.c (do_captured_thread_select): Allow the argument to the diff --git a/gdb/thread-db.c b/gdb/thread-db.c index 956d0d8..e357751 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); |