开发者

How to generate stackdump and dumped register values when an application in gcc crashes without gdb?

When my c++ app crashes I would like to generate stackdump and display dumped register values.

My app runs on Linux.

I would like my program to be able to generate stackdump and display dumped register values when it crashes and the next time the user run's it, it will ask them if it is ok to send these to me so I can track down the problem. I can handle the stacktrace info but I don't know how to generate these two thi开发者_运维技巧ngs. Any ideas?

Advance thanks to all repliers

Thank you vlc


The answer in this question could be of some use in your case. But the code in the answer prints a stacktrace and registers up on SIGSEGV only. You might have to do some more work to meet your needs.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜