> 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