The libbacktrace library gives you a way to programmatically backtrace a running process from within itself. You can use backtracing for debugging, as well as for diagnostics or logging. Most of the time, you should use gdb for debugging.
The backtrace library lets you:
The backtrace library is compatible with QNX Neutrino 6.3.0 SP2 or later.
Note the following:
handle SIGSEGV pass handle SIGBUS pass
Due to multiple gcc versions that can be used, and in each of them probable different optimizations, backtrace accuracy is directly affected; it is almost certain the backtrace won't work in many cases.