From e325dceca798d91484bb286aabd87f65eea477e4 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Fri, 14 Feb 2003 05:15:43 +0000 Subject: [PATCH] * win32-nat.cc (register_loaded_dll): Correctly set address range for just-loaded dll. --- gdb/ChangeLog | 5 +++++ gdb/win32-nat.c | 4 ++-- gdb/windows-nat.c | 4 ++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 34b1159ebce..0ed5d06e9a4 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2003-02-14 Christopher Faylor + + * win32-nat.cc (register_loaded_dll): Correctly set address range for + just-loaded dll. + 2003-02-12 Jason Molenda (jmolenda@apple.com) * symmisc.c (print_objfile_statistics): Include information about diff --git a/gdb/win32-nat.c b/gdb/win32-nat.c index 350a9957319..110af6ec1f8 100644 --- a/gdb/win32-nat.c +++ b/gdb/win32-nat.c @@ -602,8 +602,8 @@ register_loaded_dll (const char *name, DWORD load_addr) so = (struct so_stuff *) xmalloc (sizeof (struct so_stuff) + strlen (ppath) + 8 + 1); so->loaded = 0; so->load_addr = load_addr; - if (!VirtualQueryEx (current_process_handle, (void *) load_addr, &m, - sizeof (m))) + if (VirtualQueryEx (current_process_handle, (void *) load_addr, &m, + sizeof (m))) so->end_addr = (DWORD) m.AllocationBase + m.RegionSize; else so->end_addr = load_addr + 0x2000; /* completely arbitrary */ diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index 350a9957319..110af6ec1f8 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -602,8 +602,8 @@ register_loaded_dll (const char *name, DWORD load_addr) so = (struct so_stuff *) xmalloc (sizeof (struct so_stuff) + strlen (ppath) + 8 + 1); so->loaded = 0; so->load_addr = load_addr; - if (!VirtualQueryEx (current_process_handle, (void *) load_addr, &m, - sizeof (m))) + if (VirtualQueryEx (current_process_handle, (void *) load_addr, &m, + sizeof (m))) so->end_addr = (DWORD) m.AllocationBase + m.RegionSize; else so->end_addr = load_addr + 0x2000; /* completely arbitrary */ -- 2.30.2