This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
Re: Debugging Windows Namespace extension dll
- To: gdb at sourceware dot cygnus dot com
- Subject: Re: Debugging Windows Namespace extension dll
- From: Mark Hindley <mh15 at st-andrews dot ac dot uk>
- Date: Mon, 8 Nov 1999 13:18:17 +0000
>The way that I normally do something like this is:
> gdb /windows/explorer.exe
> symbol-file MyDll.dll
> set args /root
> l DllMain
> bp <first line number in DllMain>
> run
>As you probably, know using 'symbol-file' wipes out any existing symbol file
>so this may not be exactly what you want. You could use add-sym if you know
>the load address of your DLL.
>Hope this helps,
>Chris Faylor
Dear Chris,
Thanks for your help.
I still get Cannot access memory at 0x.... when I try to place a breakpoint
at DllMain. I have managed to circumvent this by placing
if (bDebug) DebugBreak();
in DllMain, but it is not pretty.
And I still get an access violation every time the dll is loaded, either
for the symbol table or for excution.
Do you have any other suggestions?
Thanks for your help
Mark Hindley
Acting Director of the Music Centre
University of St Andrews
01334 462226
http://www.st-andrews.ac.uk/services/music