From 7488902c738b0d8352fa414ee89e1b5537e13c87 Mon Sep 17 00:00:00 2001 From: Pierre Muller Date: Wed, 18 Jun 2008 06:27:34 +0000 Subject: * win32-nat.c (handle_load_dll): Give dll name and load address if debug_events is on. (handle_unload_dll): Likewise. --- gdb/win32-nat.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gdb/win32-nat.c') diff --git a/gdb/win32-nat.c b/gdb/win32-nat.c index 52ff20a..2c6d955 100644 --- a/gdb/win32-nat.c +++ b/gdb/win32-nat.c @@ -747,6 +747,9 @@ handle_load_dll (void *dummy) solib_end->next = win32_make_so (dll_name, (DWORD) event->lpBaseOfDll); solib_end = solib_end->next; + DEBUG_EVENTS (("gdb: Loading dll \"%s\" at 0x%lx.\n", solib_end->so_name, + (DWORD) solib_end->lm_info->load_addr)); + return 1; } @@ -771,6 +774,8 @@ handle_unload_dll (void *dummy) so->next = sodel->next; if (!so->next) solib_end = so; + DEBUG_EVENTS (("gdb: Unloading dll \"%s\".\n", sodel->so_name)); + win32_free_so (sodel); solib_add (NULL, 0, NULL, auto_solib_add); return 1; -- cgit v1.1