This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix for reenabling breakpoints when shared libraries are loaded on windows


The old, "how did I ever think that worked" scenario...

cgf

2003-02-14  Christopher Faylor  <cgf@redhat.com>

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

Index: win32-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/win32-nat.c,v
retrieving revision 1.71
diff -u -p -r1.71 win32-nat.c
--- win32-nat.c	6 Feb 2003 20:37:55 -0000	1.71
+++ win32-nat.c	14 Feb 2003 05:17:28 -0000
@@ -602,8 +602,8 @@ register_loaded_dll (const char *name, D
   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 */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]