aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorPierre Muller <muller@sourceware.org>2008-06-18 06:27:34 +0000
committerPierre Muller <muller@sourceware.org>2008-06-18 06:27:34 +0000
commit7488902c738b0d8352fa414ee89e1b5537e13c87 (patch)
tree32dfe3ec9eba4eb92fb5079b91af4ff51d99f42b /gdb
parentf34787f832c7a94cda142b7fa867a9be37e8f2af (diff)
downloadgdb-7488902c738b0d8352fa414ee89e1b5537e13c87.zip
gdb-7488902c738b0d8352fa414ee89e1b5537e13c87.tar.gz
gdb-7488902c738b0d8352fa414ee89e1b5537e13c87.tar.bz2
* win32-nat.c (handle_load_dll): Give dll name and load address
if debug_events is on. (handle_unload_dll): Likewise.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/win32-nat.c5
-rw-r--r--gdb/windows-nat.c5
3 files changed, 16 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index e69b4ea..ce7dcad 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2008-12-18 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.
+
2008-06-14 Vladimir Prus <vladimir@codesourcery.com>
Don't suppress *running when doing finish.
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;
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c
index 52ff20a..2c6d955 100644
--- a/gdb/windows-nat.c
+++ b/gdb/windows-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;