Re: How does solib handline shared library unloads?

Christopher Faylor
2005-11-01T16:20:30Z

On Tue, Nov 01, 2005 at 10:12:12AM -0500, Daniel Jacobowitz wrote:
>On Tue, Nov 01, 2005 at 09:40:32AM -0500, Christopher Faylor wrote:
>> On Tue, Nov 01, 2005 at 08:51:42AM -0500, Daniel Jacobowitz wrote:
>> >On Tue, Nov 01, 2005 at 08:45:47AM -0500, Christopher Faylor wrote:
>> >>Is this handled as part of the so breakpoint stuff? I was trying to
>> >>avoid implementing that but I will if I have to.
>> >
>> >Well, that's how we get to solib_add for svr4 targets; but it should
>> >work to get there off an explicit DLL unload event, anyway. I think.
>>
>> Yeah, that's what I did but I think that the more I make the windows
>> target work like linux, the less chance there will be that it will get
>> out of sync with ongoing development.
>>
>> So, I might eventually just try to make this work more like linux.
>
>Well, there's other targets which provide explicit unload notification
>(HP/UX; perhaps Symbian someday)...

Cygwin sets TARGET_WAITKIND_LOADED when a DLL is loaded but I don't see
any corresponding TARGET_WAITKIND_UNLOADED. It doesn't look like
TARGET_WAITKIND_LOADED calls solib_add, though.

cgf