Ignore DLL load/unload events during inferior initialization.
authorJoel Brobecker <brobecker@adacore.com>
Mon, 3 Feb 2014 07:32:40 +0000 (08:32 +0100)
committerJoel Brobecker <brobecker@adacore.com>
Thu, 20 Feb 2014 08:40:20 +0000 (09:40 +0100)
commitea39ad355eb72b296b30a66bbc81256a071e8f1e
tree6b06a082379cc58320cee1153d8d21d706f58284
parent95060284901dbfb617a988069604f0835c36c0ca
Ignore DLL load/unload events during inferior initialization.

This patch aims at simplifying DLL handling during the inferior
initialization (process creation during the "run", or during an
"attach"). Instead of processing each DLL load event, which is
sometimes incomplete, we ignore these events until the inferior
has completed its startup phase, and then just iterate over all
DLLs via EnumProcessModules.

gdb/ChangeLog:

        * windows-nat.c (get_windows_debug_event): Ignore
        LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
        if windows_initialization_done == 0.
        (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
        Adjust implementation to always load all DLLs.
        (do_initial_windows_stuff): Replace call to
        windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
gdb/ChangeLog
gdb/windows-nat.c