Re: Problems getting stack trace for VC6 build
- From: "Oleg Starodumov" <com-dot-debuginfo-at-oleg>
- Date: Tue, 29 May 2007 00:57:23 -0700
I'm trying to get to use DBGHELP to get a stack trace. When I build
with VC7.1, everything works fine. When I build with VC6 (which
unfortunately is still used in our production environment), however,
the code is unable to find file/line information for the stack frames,
returning error 487 (invalid address). Interestingly, when I debug the
application is Visual Studio (VS.NET 2003) I have problems as well: I
can only see the disassembly view (with interleaved source) and any
attempt to go to the source code displays a dialog with the message
"The source code cannot be displayed".
Try the following options:
Compiler: /Zi /Od (the latter is optional, of course)
Linker: /debug /debugtype:cv /pdb:yourapp.pdb /pdbtype:con
(plus /opt:ref in release build)
All these options can be set in project settings, if necessary.
In the Modules view, my modules are listed with "Symbols loaded"
although the icon has a red exclamation mark decorating it (no idea
what that means).
It means that the module has been relocated (loaded at an address other
than its preferred base address).
--
Oleg
[VC++ MVP http://www.debuginfo.com/]
.
- Follow-Ups:
- Re: Problems getting stack trace for VC6 build
- From: Matthew Gertner
- Re: Problems getting stack trace for VC6 build
- References:
- Problems getting stack trace for VC6 build
- From: Matthew Gertner
- Problems getting stack trace for VC6 build
- Prev by Date: Problems getting stack trace for VC6 build
- Next by Date: Re: Problems getting stack trace for VC6 build
- Previous by thread: Problems getting stack trace for VC6 build
- Next by thread: Re: Problems getting stack trace for VC6 build
- Index(es):
Relevant Pages
|
Loading