[RFA] Off-by-one error in linux thread-db.c?

Michael Snyder msnyder@cygnus.com
Tue Mar 27 17:20:00 GMT 2001


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))
  	    {


More information about the Gdb-patches mailing list