From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Hindley To: Pierre Muller Cc: gdb@sourceware.cygnus.com Subject: Re: Debugging Windows Namespace extension dll Date: Fri, 19 Nov 1999 04:10:00 -0000 Message-id: References: <199911191222.NAA32665@cerbere.u-strasbg.fr> X-SW-Source: 1999-q4/msg00289.html That is the whole point. I can't get it to break anywhere. Maybe it was a silly example I posted, but I get the same problem if I try to put a bp on (say) line 1 of DllMain. Why is gdb trying to insert a bp before the dll is loaded? >>tb 13 >> >>Breakpoint 1 at 0x661811a0: file CompObj.cpp, line 13. > >>Starting program: /windows/explorer.exe /root, >>{53161ce0-56af-11d3-abb2-444553540001}, >>bfb90000:C:/WINDOWS/SYSTEM/COMCTL32.DLL >>bfb50000:C:/WINDOWS/SYSTEM/SHLWAPI.DLL >>bff60000:C:/WINDOWS/SYSTEM/USER32.DLL >>bff30000:C:/WINDOWS/SYSTEM/GDI32.DLL >>bff70000:C:/WINDOWS/SYSTEM/KERNEL32.DLL >>bfed0000:C:/WINDOWS/SYSTEM/ADVAPI32.DLL > > Its normal because your DLL has not yet been loaded into >memory !! >>Cannot insert breakpoint 1: >> >>Cannot access memory at address 0x661811a0. >>Am I doing something silly? > > You must first break somewhere after >the DLL was loaded, or is it possible to >get a stop after DLL loading ? > > > >Pierre Muller >Institut Charles Sadron >6,rue Boussingault >F 67083 STRASBOURG CEDEX (France) > mailto:muller@ics.u-strasbg.fr >Phone : (33)-3-88-41-40-07 Fax : (33)-3-88-41-40-99 Mark Hindley Acting Director of the Music Centre University of St Andrews 01334 462226 http://www.st-andrews.ac.uk/services/music