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]

[Fwd: Re: gdb/780: Problem to debug a DLL]


[in case someone isn't monitoring the bug reports]
--- Begin Message ---
The following reply was made to PR gdb/780; it has been noted by GNATS.

From: Pascal Obry <p.obry@wanadoo.fr>
To: nobody@sources.redhat.com, obry@gnat.com, gdb-gnats@sources.redhat.com
Cc:  
Subject: Re: gdb/780: Problem to debug a DLL
Date: Mon, 11 Nov 2002 18:02:49 +0100

 http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view&20audit-trail'database=gdb'pr=780
 
 Just to add another patch to fix this. I forget to send it with the previous
 one. The pacth is to avoid registering Windows system DLL. Those have no GNU
 debug information anyway and they confuse GDB. Without this pacth some
 breakpoint in DLL (as reported under this TN) are not effective.
 
 2002-11-11  Pascal Obry  <obry@gnat.com>
 
 	* win32-nat.c (handle_load_dll): Do not register Windows system
         DLL. These DLL does not have GNU debug information and they confuse
         GDB. This fix is needed for B930-020 and BB06-008. See i386-tdep.c
         patch below.
 
 <<
 *** win32-nat.c.orig	Mon Nov 11 17:53:24 2002
 --- win32-nat.c	Mon Nov 11 17:05:10 2002
 ***************
 *** 648,653 ****
 --- 648,661 ----
     if (!dll_name)
       return 1;
   
 +   /* We do not want to load system NT DLL. These DLL do not have GNU debug
 +      information and loading them just confuse GDB. One problem is that it is
 +      not possible to break into a DLL for example. */
 +   
 +   if ((strstr (dll_name, "\\system32\\") != NULL)
 +       || (strstr (dll_name, "ntdll.dll") != NULL))
 +     return 1;
 +   
     register_loaded_dll (dll_name, (DWORD) event->lpBaseOfDll + 0x1000);
   
     return 1;
 >>
 
 Pascal.
 
 -- 
 
 --|------------------------------------------------------
 --| Pascal Obry                           Team-Ada Member
 --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
 --|------------------------------------------------------
 --|         http://perso.wanadoo.fr/pascal.obry
 --| "The best way to travel is by means of imagination"
 --|
 --| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595
 

--- End Message ---

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