[PATCH] Disable thread specific breakpoints when thread dies

Daniel Jacobowitz drow@false.org
Fri Jan 13 04:31:00 GMT 2006


On Thu, Jan 12, 2006 at 08:18:02PM -0800, Michael Snyder wrote:
> Daniel,
> 
> valid_thread_id wouldn't be safe, because thread ids might be re-used.
> 
> This implementation looks fine to me...

How is this any better in that case?  These thread IDs can't be reused
without all the rest of GDB having the same problem - this is GDB's
internal thread ID, not the inferior PTID (see the valid_thread_id
implementation).

>From Andrew's message it sounds like a missing clear of the thread list
at inferior exit.  Which I thought someone had fixed just recently.

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Gdb-patches mailing list