This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFA-v3] win32-nat.c: Add dll names if debugevents is on
Thanks Pedro,
this is my trouble as I am mainly a pascal programmer:
I am always lost in implicit typecast/conversion rules :(
The patch is thus even simpler:
ChangeLog entry:
2008-12-14 Pierre Muller <muller@ics.u-strasbg.fr>
* win32-nat.c (handle_load_dll): Give dll name and load address
if debug_events is on.
(handle_unload_dll): Likewise.
$ cvs diff -up gdb/win32-nat.c
Index: gdb/win32-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/win32-nat.c,v
retrieving revision 1.152
diff -u -p -r1.152 win32-nat.c
--- gdb/win32-nat.c 20 May 2008 18:36:36 -0000 1.152
+++ gdb/win32-nat.c 13 Jun 2008 23:02:29 -0000
@@ -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;