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

Joel Brobecker brobecker@adacore.com
Fri Dec 13 14:17:00 GMT 2013


> I'll also add comments and documentation, if we decide to move forward.

Here is an updated patch. Compared to the last one, I moved the
linking of safe-ctype.o and lbasename.o to configure.srv instead
of Makefile.in::OBS, so only Windows builds are affected. I also
copy/pasted the comment from windows-nat.c to document the new function.

gdb/gdbserver/ChangeLog:

	* Makefile.in (safe-ctype.o, lbasename.o): New rules.
	* configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
	for all targets that use win32-low.c.
	* win32-low.c (win32_ensure_ntdll_loaded): New function.
	(do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.

I tested the patch on both x86_64-windows and also x86-windows.
OK to commit this version? (I can take care of checking in your patch)

Thank you,
-- 
Joel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-gdbserver-nameless-LOAD_DLL_DEBUG_EVENT-causes-ntdll.patch
Type: text/x-diff
Size: 7078 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20131213/567203e5/attachment.bin>


More information about the Gdb-patches mailing list