This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[RFA] Off-by-one error in linux thread-db.c?
- To: gdb-patches at sources dot redhat dot com
- Subject: [RFA] Off-by-one error in linux thread-db.c?
- From: Michael Snyder <msnyder at cygnus dot com>
- Date: Tue, 27 Mar 2001 17:20:34 -0800
- CC: Mark Kettenis <kettenis at wins dot uva dot nl>
- Organization: Red Hat
Mark, what do you think? There's no signal zero...
2001-03-27 Michael Snyder <msnyder@redhat.com>
* thread-db.c (check_thread_signals): Off by one error in loop.
Index: thread-db.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/thread-db.c,v
retrieving revision 2.5
diff -c -3 -p -r2.5 thread-db.c
*** thread-db.c 2001/03/26 19:54:42 2.5
--- thread-db.c 2001/03/28 00:57:02
*************** check_thread_signals (void)
*** 469,475 ****
sigemptyset (&thread_stop_set);
sigemptyset (&thread_print_set);
! for (i = 0; i < NSIG; i++)
{
if (sigismember (&mask, i))
{
--- 469,475 ----
sigemptyset (&thread_stop_set);
sigemptyset (&thread_print_set);
! for (i = 1; i < NSIG; i++)
{
if (sigismember (&mask, i))
{