How to generate a stacktrace when my gcc C++ app crashes
- by KPexEA
When my c++ app crashes I would like to generate a stacktrace.
I already asked this but I guess I needed to clarify my needs.
My app is being run by many different users and it also runs on Linux, Windows and Macintosh ( all versions are compiled using gcc ).
I would like my program to be able to generate a stack trace when it crashes and the next time the user run's it, it will ask them if it is ok to send the stack trace to me so I can track down the problem. I can handle the sending the info to me but I don't know how to generate the trace string. Any ideas?