Re: [RFA] nameless LOAD_DLL_DEBUG_EVENT causes ntdll.dll to be missing

Joel Brobecker
2013-12-10T10:56:34Z

Hi Pedro,

> [regarding gdbserver]
> > I think the fix is very low risk, and could go in with minimal
> > testing.
>
> OK - will work on that ASAP.

I just had a look, and unfortunately, by the time we get to the end of
do_initial_child_stuff, gdbserver has not done the wait/resume cycle
and so DLLs have not been mapped yet. This is because this part is
currently handled by the generic code, as opposed to the "create_inferior"
or "attach" methods.

It seems to me that, if we want to fix this issue in GDBserver,
we'll need to add a new method, something like inferior_created.
We'd then call this new method, if defined, at the end of both
start_inferior and attach_inferior.

Does this sound right to you?

Thanks,
--
Joel