[PATCH] PR gdb/11568 - delete thread-specific breakpoints on thread exit

Pedro Alves palves@redhat.com
Tue Sep 17 19:36:00 GMT 2013


On 09/09/2013 05:07 PM, Tom Tromey wrote:
>>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:
> 
> Pedro> Here it is.  Let me know what you all think.
> 
> It looks good to me.

Thanks.  I've checked it in now.

> Pedro> There's no way that breakpoint can trigger again (*), so the PR argues
> Pedro> that the breakpoint should just be removed, like local watchpoints.
> Pedro> I'm ambivalent on this -- it could be reasonable to disable the
> Pedro> breakpoint (kind of like breakpoint in shared library code when the
> Pedro> DSO is unloaded), so the user could still use it as visual template
> Pedro> for creating other breakpoints (copy/paste command lists, etc.), or we
> Pedro> could have a way to change to which thread a breakpoint applies.  But,
> Pedro> several people pushed this direction, and I don't plan on arguing...
> 
> I've sometimes wished for a way to modify a breakpoint in place.
> There may be another PR about this.
> But it's fine to put in this patch now and remove it again later if
> anyone actually implements breakpoint modification.

Yeah.

-- 
Pedro Alves



More information about the Gdb-patches mailing list