* win32-nat.cc (register_loaded_dll): Correctly set address range for

just-loaded dll.
This commit is contained in:
Christopher Faylor 2003-02-14 05:15:43 +00:00
parent c4f90d873c
commit e325dceca7
3 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2003-02-14 Christopher Faylor <cgf@redhat.com>
* 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

View File

@ -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 */

View File

@ -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 */