C/C++‎ > ‎

Stacktrace

Little stacktrace program for Linux:
It writes the stacktrace of a function as a debug message on the terminal.

Run with:

 $ qmake qmake CONFIG+=debug
 $ make
 $ ./stacktrace

Output:

>>>> Stack of void nspace::func1():

"nspace::func2()"

"nspace::func3()"

"main"


More info here:
https://www.gnu.org/s/hello/manual/libc/Backtraces.html
http://gcc.gnu.org/onlinedocs/libstdc++/manual/ext_demangling.html

ċ
stacktrace.tar.gz
(1k)
El Samuko,
Sep 11, 2011, 2:48 AM
Comments