01 July, 2011

Gcc Run-time Stack Trace

Came across this reference that outlines a means to grab a thread stack-trace as part of run-time. Thought it might be useful in the future for logging error handling info.

Example should be compiled with -rdynamic flag;
e.g.
 g++ -rdynamic main.cpp


Cheers.