Ashish said:
Hello,
Is there a way to print stack trace in a c++ application?
I would like to do this before asserting in a situation that can't be
handled.
Thanks,
-Ashish
I don't believe there is anything specifically addressing that in the C++
Standard document. There is support for printing backtraces on all
platforms I have any familiarity with, but those are implementation
dependent. I just came across the discussion on this website, It's
probably a bit deeper than you want to go, but it should give you some
insight into the current status of this type of thing in relationship to
C++.
http://www.armdevzone.com/EABI/CppABI.html
# 20th February 2004 - Latest draft (1.01) of the exception handling
components implementation (ZIP, 37KB). [Last updated 20-February-2004]
# 15th August 2003 - Latest draft of the exception handling ABI(PDF, 259KB).
[Last updated 20-February-2004]