aboutsummaryrefslogtreecommitdiff
path: root/gdb/thread-db.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2001-04-17 19:14:54 +0000
committerMichael Snyder <msnyder@vmware.com>2001-04-17 19:14:54 +0000
commitb95697738e1779fa6f9d337ec5a83cd5be6ba8dd (patch)
treee36f0b24aa55f8151e769924e8e1ce6b9db6c36f /gdb/thread-db.c
parent81490ea1cb9493404e7a8df7866bd38b13320ab8 (diff)
downloadgdb-b95697738e1779fa6f9d337ec5a83cd5be6ba8dd.zip
gdb-b95697738e1779fa6f9d337ec5a83cd5be6ba8dd.tar.gz
gdb-b95697738e1779fa6f9d337ec5a83cd5be6ba8dd.tar.bz2
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.
Diffstat (limited to 'gdb/thread-db.c')
-rw-r--r--gdb/thread-db.c4
1 files changed, 2 insertions, 2 deletions
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);