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

Tom Tromey tromey@redhat.com
Mon Sep 9 16:07:00 GMT 2013


>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:

Pedro> Here it is.  Let me know what you all think.

It looks good to me.

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.

Tom



More information about the Gdb-patches mailing list