mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 04:49:54 +08:00
* win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
|
||||||
|
|
||||||
|
* win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
|
||||||
|
|
||||||
2007-08-23 Joel Brobecker <brobecker@adacore.com>
|
2007-08-23 Joel Brobecker <brobecker@adacore.com>
|
||||||
|
|
||||||
* configure.ac: Switch license to GPLv3.
|
* configure.ac: Switch license to GPLv3.
|
||||||
|
@ -1066,9 +1066,18 @@ handle_load_dll (void)
|
|||||||
|
|
||||||
dll_buf[0] = dll_buf[sizeof (dll_buf) - 1] = '\0';
|
dll_buf[0] = dll_buf[sizeof (dll_buf) - 1] = '\0';
|
||||||
|
|
||||||
if (!psapi_get_dll_name ((DWORD) (event->lpBaseOfDll), dll_buf)
|
/* Windows does not report the image name of the dlls in the debug
|
||||||
&& !toolhelp_get_dll_name ((DWORD) (event->lpBaseOfDll), dll_buf))
|
event on attaches. We resort to iterating over the list of
|
||||||
dll_buf[0] = dll_buf[sizeof (dll_buf) - 1] = '\0';
|
loaded dlls looking for a match by image base. */
|
||||||
|
if (!psapi_get_dll_name ((DWORD) event->lpBaseOfDll, dll_buf))
|
||||||
|
{
|
||||||
|
if (!server_waiting)
|
||||||
|
/* On some versions of Windows and Windows CE, we can't create
|
||||||
|
toolhelp snapshots while the inferior is stopped in a
|
||||||
|
LOAD_DLL_DEBUG_EVENT due to a dll load, but we can while
|
||||||
|
Windows is reporting the already loaded dlls. */
|
||||||
|
toolhelp_get_dll_name ((DWORD) event->lpBaseOfDll, dll_buf);
|
||||||
|
}
|
||||||
|
|
||||||
dll_name = dll_buf;
|
dll_name = dll_buf;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user