tags:

views:

106

answers:

3

I have a compiled c++ application that produces a stack trace when it crashes. At the moment, the stack trace isn't particularly meaningful. I would like to process it so that it contains symbols, rather than addresses.

Does anyone have any pointers on how I might go about doing this?

+3  A: 

Do you get a resolved stack dump if the program is compiled with -g or -ggdb and you don't strip the program?

sarnold
A: 

If you have a map file its quite easy to map symbols to the addresses in the stack dump. I wrote an article (including some sources) about this sometime ago at ddj:

http://www.drdobbs.com/tools/185300443

RED SOFT ADAIR