This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA/commit 1/3] Ignore DLL load/unload events during inferior initialization.


Hi Joel, sorry for not responding to this sooner.

The series looked fine to me, FWIW.  Thanks!

On 02/10/2014 10:50 AM, Joel Brobecker wrote:
> -/* On certain versions of Windows, the information about ntdll.dll
> -   is not available yet at the time we get the LOAD_DLL_DEBUG_EVENT,
> -   thus preventing us from reporting this DLL as an SO. This has been
> -   witnessed on Windows 8.1, for instance.  A possible explanation
> -   is that ntdll.dll might be mapped before the SO info gets created
> -   by the Windows system -- ntdll.dll is the first DLL to be reported
> -   via LOAD_DLL_DEBUG_EVENT and other DLLs do not seem to suffer from
> -   that problem.

I think it's a little unfortunate that we lose this comment (in
some form), because it explains precisely _why_ we defer reading
the dll list to afterwards.  I think someone reading the code
not being familiar with the history will naturally wonder
about this.

-- 
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]