Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* infttrace vs add_thread
@ 2001-12-19 10:40 law
  2001-12-19 10:49 ` Andrew Cagney
  0 siblings, 1 reply; 3+ messages in thread
From: law @ 2001-12-19 10:40 UTC (permalink / raw)
  To: gdb-patches


When add_thread was changed to accept a ptid_t type instead of just an
integer, nobody updated infttrace.c to reflect those changes.

The net result is a segfault if you try to use GDB on hpux11.

Again, since I'm no longer a GDB maintainer, I'll hold off installing the
fix until approved by a GDB maintainer.


	* infttrate.c (child_acknowledge_created_inferior): Pass
	correct argument to add_thread.
	(update_thread_state_after_attach): Likewise.
Index: infttrace.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/infttrace.c,v
retrieving revision 2.22
diff -c -3 -p -r2.22 infttrace.c
*** infttrace.c	2001/09/30 19:16:20	2.22
--- infttrace.c	2001/12/18 17:50:01
*************** child_acknowledge_created_inferior (int 
*** 3123,3129 ****
     *    the process safely to ask what it is.  Anyway, we'll
     *    add it when it gets the EXEC event.
     */
!   add_thread (pid);		/* in thread.c */
  
    /* We can now set the child's ttrace event mask.
     */
--- 3123,3129 ----
     *    the process safely to ask what it is.  Anyway, we'll
     *    add it when it gets the EXEC event.
     */
!   add_thread (pid_to_ptid (pid));		/* in thread.c */
  
    /* We can now set the child's ttrace event mask.
     */
*************** update_thread_state_after_attach (int pi
*** 4764,4770 ****
  	    }
  	}
  
!       add_thread (tid);		/* in thread.c */
      }
  
  #ifdef PARANOIA
--- 4764,4770 ----
  	    }
  	}
  
!       add_thread (pid_to_ptid (pid));		/* in thread.c */
      }
  
  #ifdef PARANOIA









^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-12-19 19:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-19 10:40 infttrace vs add_thread law
2001-12-19 10:49 ` Andrew Cagney
2001-12-19 11:18   ` law

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox