This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] nameless LOAD_DLL_DEBUG_EVENT causes ntdll.dll to be missing
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 10 Dec 2013 11:56:24 +0100
- Subject: Re: [RFA] nameless LOAD_DLL_DEBUG_EVENT causes ntdll.dll to be missing
- Authentication-results: sourceware.org; auth=none
- References: <1386070185-8020-1-git-send-email-brobecker at adacore dot com> <529E361B dot 7070807 at redhat dot com> <20131205105437 dot GE3175 at adacore dot com> <52A073CC dot 3050009 at redhat dot com> <20131209113333 dot GC4011 at adacore dot com>
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