Class for printing stack backtrace in the event of a crash. More...
#include <cmtkStackBacktrace.h>
Public Types | |
typedef StackBacktrace | Self |
This class. | |
Public Member Functions | |
StackBacktrace () | |
Constructor: register signal handler. | |
Static Public Member Functions | |
static void | SetExitCode (const int code=1) |
Set exit code used after catching SEGFAULT or other signals. | |
static void | PrintBacktrace (const int levels=0) |
Print current stack backtrace. | |
Static Public Attributes | |
static int | ExitCode = 1 |
Exit code. |
Class for printing stack backtrace in the event of a crash.
A static instance of this class is used to catch SEGFAULT and other termination signals and prints a stack trace.
Definition at line 51 of file cmtkStackBacktrace.h.
This class.
Definition at line 56 of file cmtkStackBacktrace.h.
static void cmtk::StackBacktrace::SetExitCode | ( | const int | code = 1 ) |
[inline, static] |
Set exit code used after catching SEGFAULT or other signals.
Definition at line 62 of file cmtkStackBacktrace.h.