This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [rfc] Fix removing breakpoint from shared library race


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]