mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-30 23:40:24 +00:00
* win32-nat.cc (register_loaded_dll): Correctly set address range for
just-loaded dll.
This commit is contained in:
parent
c4f90d873c
commit
e325dceca7
@ -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
|
||||
|
@ -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 */
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user