Re: windbg & vs 2005 - can't use debugging symbols on vs2005 dlls!
- From: "Oleg Starodumov" <com-dot-debuginfo-at-oleg>
- Date: Fri, 27 Jan 2006 10:37:11 +0200
> The application migrated to vs2005 with little to no trouble, and was able
> to debug vs2003 pdbs/dlls fine. The problem is when we migrated our dlls to
> vs2005, suddenly their symbols would not load anymore (and they also appear
> to crash, even though they compile fine, which is why I tried to debug). The
> only thing I'm trying to do right now is load the vs2005 version dlls, in
> either windbg or vs2005- neither is letting me.
>
> When I debug the app, the app's symbols load in correctly, but no dll
> symbols. Likewise, when I debug the dlls solution with the app, the app will
> load, but the dlls will not.
>
> I haven't changed any of the dll settings- they are all linked with:
> /PDB:<pdb file path>
> /DEBUG
> and compiled with:
> /Zi
>
> The bizarre twist is that this all works correctly on another machine, with
> exactly the same compile/link options. Could it be due to remnants of VS2005
> beta, which was installed at one time, but removed via the uninstaller helper
> app?
>
What happens if you copy the DLLs and PDBs built on the machine where
it does not work to the machine where it does work? Will the debugger be able
to load symbols for the DLLs?
Also make sure that the DLLs are loaded from the expected locations
(check the path in debugger's Modules window) (e.g. to verify that older versions
of the DLLs do not get loaded by mistake).
When debugging in WinDbg, run the following commands:
!sym noisy
..reload /f yourdll.dll
!lmi yourdll.dll
(yourdll.dll should be one of the problematic DLLs)
What output will be reported by WinDbg?
(please use one of the latest versions of WinDbg, at least 6.5)
Regards,
Oleg
[VC++ MVP http://www.debuginfo.com/]
.
- Follow-Ups:
- Re: windbg & vs 2005 - can't use debugging symbols on vs2005 dlls!
- From: Jan Grzymala-Busse
- Re: windbg & vs 2005 - can't use debugging symbols on vs2005 dlls!
- Prev by Date: Re: list Call sequence (call stack) in the debugger
- Next by Date: Re: windbg & vs 2005 - can't use debugging symbols on vs2005 dlls!
- Previous by thread: list Call sequence (call stack) in the debugger
- Next by thread: Re: windbg & vs 2005 - can't use debugging symbols on vs2005 dlls!
- Index(es):
Relevant Pages
|