gdbserver/Windows: Rely purely on event info when handling DLL load event
authorJoel Brobecker <brobecker@adacore.com>
Mon, 24 Feb 2014 23:21:14 +0000 (15:21 -0800)
committerJoel Brobecker <brobecker@adacore.com>
Wed, 26 Feb 2014 20:05:18 +0000 (12:05 -0800)
commitd763de106f7146d7b972f98c7d0113f80a65e4f5
treea7e6822b1241fb2cff8a185e8702f77e018a3610
parent850a0f76c25f74c4f3f86b079893e26ae2d52a9a
gdbserver/Windows: Rely purely on event info when handling DLL load event

This is the GDBserver counterpart of a change we recently made in
GDB to only rely on get_image_name to determine its name.

This simplification, in turn, allows us to remove a fair amount of
functions and globals which now become unused.

gdb/gdbserver/ChangeLog:

* win32-low.c (psapi_get_dll_name,
* win32_CreateToolhelp32Snapshot): Delete.
(win32_CreateToolhelp32Snapshot, win32_Module32First)
(win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
Delete.
(handle_load_dll): Add function description.
Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
gdb/gdbserver/ChangeLog
gdb/gdbserver/win32-low.c