|call frame address in debug build and normal build firstname.lastname@example.org (2004-01-12)|
|Re: call frame address in debug build and normal build email@example.com (2004-01-16)|
|From:||firstname.lastname@example.org (Joerg Mueller-Tolk)|
|Date:||12 Jan 2004 13:31:49 -0500|
|Keywords:||debug, question, comment|
|Posted-Date:||12 Jan 2004 13:31:49 EST|
I hope you will understand what I mean. I use GNU gcc and gdb. If you
have the address in a release program, where (for example) a
segmentation fault happened. Do you have a chance to find out the
corresponding source line?
If the appropriate flags are set the compiler will insert debug info
into a build. If you have a debug build of a program the answer of
the question above is trivial.
The compiler should be able to generate something like a map file to
resolve addresses to source lines even for release builds.
Can anyone help me if there a tools to get such a relation file for
gcc compiled programs?
[The usual technique is to build the program with all the symbols,
make a copy, strip it, and ship it, but keep the original for
crash debugging. -John]
Return to the
Search the comp.compilers archives again.