all groups > visual studio .net debugging > december 2004 >
You're in the

visual studio .net debugging

group:

PDB question


PDB question Daryn Kiely
12/21/2004 10:53:02 AM
visual studio .net debugging:
I have a couple of questions regarding using a PDB file. How does VS 2003
determe whether a PDB file is valid for the current DLL that is loaded? Is
there a way to force it to load a PDB you know is valid but it doesn't
believe you?? The reason I ask is I have a mdmp file from a customer that
tells me the call stack for the crash, but I cannot resolve any of the
symbols. I have all the PDBs from build time, but cannot get them to load.
Any help would be greatly appreciated.

Thanks
Re: PDB question Oleg Starodumov
12/22/2004 10:02:10 AM

[quoted text, click to view]

Take a look at this article:
http://www.debuginfo.com/articles/debuginfomatch.html

[quoted text, click to view]

The problem can be with binaries, not with PDBs (VS.NET debugger needs
to find the binaries (EXEs and DLLs) first, and only then it can load debug information
from the PDB files; the binaries must be the same as were running on the user system
when the dump was created).
If you use VS.NET debugger to analyze the dump, what message
do you see in Modules window for the modules in question?

See also if these articles can help:
http://msdn.microsoft.com/library/en-us/vsdebug/html/vxconCrashDumpModuleLoading.asp
http://www.codeproject.com/debug/postmortemdebug_standalone1.asp

Regards,
Oleg







Re: PDB question Daryn Kiely
1/7/2005 12:13:02 AM
Actually the issue I have is I have the proper binaries, and the source code
as was used to create the binaries, but if I create a new PDB I cannot load
it (the original PDB was not saved with the build). It would be nice to be
able to force the loading of the PDB if you know that everything is identical
(it is built with the same code base on the same computer from the same
directory...)

Thanks
Daryn

[quoted text, click to view]
Re: PDB question Oleg Starodumov
1/10/2005 4:31:45 PM

[quoted text, click to view]

So, what message is displayed by the debugger in Modules window
for those modules? (Just to be sure)

[quoted text, click to view]

See the article referenced in my first reply, it describes what to do in this situation:
http://www.debuginfo.com/articles/debuginfomatch.html#loadunmatched

If you use WinDbg to debug the dump, execute the following commands to load
the unmatched PDB files:
!sym noisy
..symopt+0x40
..reload /f YourDll.dll
(repeat .reload for all needed modules)

If something still does not work, please post the output produced by these commands.

If you want to use VS.NET debugger, you can try this tool
to force the executables and PDB files match:
http://www.debuginfo.com/tools/chkmatch.html

Regards,
Oleg











Re: PDB question Daryn Kiely
1/10/2005 9:53:02 PM
This works, in visual studio the modules window shows "No symbols loaded"

Thanks
Daryn

[quoted text, click to view]
AddThis Social Bookmark Button