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

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.

Reply to
Mr. J
Loading thread data ...

You might want to try:

formatting link

Reply to
Harold Chu

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.