This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfc] Fix removing breakpoint from shared library race
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Ulrich Weigand <uweigand at de dot ibm dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 18 Aug 2008 15:46:17 +0400
- Subject: Re: [rfc] Fix removing breakpoint from shared library race
- References: <200808132034.m7DKYEEK005260@d12av02.megacenter.de.ibm.com>
> When *removing* breakpoints, however, there is no such check. I have a
> multi-threaded test case that reproducibly runs into an error when trying
> to remove a breakpoint from a shared library that was *just* unloaded.
[...]
> Am I missing some reason why we shouldn't get to this point? Otherwise,
> this seems a reasonble solution to me ...
The fix looks reasonable to me, but I'm not sure, though. Perhaps
part of the problem is that I don't see how you got there in your
example (I'm having trouble figuring out a case where the debugger
would end up removing a breakpoint while a shared library has just
been unloaded). Could you post more details?
--
Joel