This is the mail archive of the
mailing list for the GDB project.
Re: breakpoints in shared libraries
>>>>> "Daniel" == Daniel Jacobowitz <email@example.com> writes:
>> How can this be fixed? I don't know the answer. One idea I had is to
>> annotate each breakpoint with information about what shared library it
>> comes from. Then, defer processing for that breakpoint until the
>> shared library is actually loaded by the inferior.
Daniel> I think the best approach for this is to expose an interface
Daniel> to create shlib_disabled breakpoints. Then they'll be
Daniel> automatically re-enabled when the library containing that
Daniel> symbol is loaded.
One thing to think about is how Insight will determine that it should
save a breakpoint as shlib_disabled as opposed to the ordinary kind.
At the time Insight is saving the session, all libraries may be loaded
and all the breakpoints activated.