MI solib notification

Tom Tromey tromey@redhat.com
Thu Feb 12 17:35:00 GMT 2009


>>>>> "Daniel" == Daniel Jacobowitz <drow@false.org> writes:

>> Yes, this runs everywhere except a.out and marks all breakpoints in solibs
>> disabled, without printing any messages. *Then* we look over all solibs
>> and call observer, but since all breakpoints are already disabled,
>> breakpoint.c:disable_breakpoints_in_unloaded_shlib won't do anything,
>> and won't say anything either.

Daniel> I see.  The comment in clear_solibs means that we will break SunOS
Daniel> a.out shared libraries if we do this; they were previously not
Daniel> disabled, since they won't ever be re-enabled.  So I suggest not
Daniel> making the observer call on a.out either.  Otherwise OK.

I actually already approved this hunk in another thread -- Paul
Pluzhnikov's recent patch.

My rationale for approving it was that for this observer to be
reliable, it has to be called every place an so is freed.  I was even
thinking the call should probably be pushed into free_so.

Now I'm thinking I don't understand this code as well as I thought I
did :}.  I hope I didn't cause too much trouble.

Tom



More information about the Gdb-patches mailing list