MM.
MM.

Reputation: 4274

Making a crash log meaningful (c++, Linux env)

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?

Upvotes: 2

Views: 585

Answers (2)

RED SOFT ADAIR
RED SOFT ADAIR

Reputation: 12218

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

Upvotes: 0

sarnold
sarnold

Reputation: 104020

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

Upvotes: 3

Related Questions