C or C++ routine to print the stack trace from within a program

Dec 01, 2004 1 Replies

I need some C/C++ code that I can use to dynamically print the stack trace of a given thread from within a linux/i386 program.



We are throwing exceptions and we want to add the stack trace in the exception.



Please let me know where I can find it.


You might want to try:

formatting link

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required