Groups | Blog | Home
all groups > visual studio .net debugging > december 2005 >

visual studio .net debugging : pdb format is obsolete, Can't debug vc6 dlls. What to do?


Jerry2000
12/22/2005 8:15:04 AM
I have an app that is mix of new and old dll's. The old dlls are built with
VC6.

When I debug it with VS 2003, it debugs the old dlls. But when debug it
with VS 2005, it cannot debug the old dlls and reports "PDB format is
obsolete" in the module window under symbol status.

Is there a way to debug into VC6 DLLs with VS 2005?

Oleg Starodumov
12/25/2005 5:16:28 AM

[quoted text, click to view]

VS2005 reports symbol formats produced by VC6 as obsolete,
but it looks like it is still able to read them.

What kind of problems do you see when trying to debug these DLLs?
(no source code, no local variables, etc.?)

Which of the following options were used to build the DLLs in VC6?
Compiler: /Z*
Linker: /debug /debugtype /pdb /pdbtype

Regards,
Oleg
[VC++ MVP http://www.debuginfo.com/]


Jerry2000
1/6/2006 3:32:02 PM
compiler options were
/nologo /MDd /W3 /WX /Gm /GX /Zi /Od /FD /GZ /c

linker options were
/nologo /dll /pdb:none /map:"Debug/simpal.map" /debug /machine:I386
/out:"Debug/simpal.dll" /implib:"Debug/simpal.lib" /libpath:"../Debug"

I also discovered that changing the link to use a pdb file allows vs 2005 to
work.
Jerry2000
1/12/2006 12:17:03 PM
[quoted text, click to view]

Cannot set breakpoints at source lines when debug is compiled into dll.
AddThis Social Bookmark Button