The Sparta Modeling Framework
|
Backtrace printer. Registers a handler for certain fatal signals and dumps the backtrace if they occur. More...
#include <Backtrace.hpp>
Public Member Functions | |
Backtrace () | |
Default constructor. | |
~Backtrace () | |
Restore all handlers if they haven't been replaced a second time. | |
void | setAsHandler (int signum=SIGSEGV) |
Set this as the handler for a signal. | |
Static Public Member Functions | |
static void | dumpBacktrace (std::ostream &o) |
Write the current backtrace to a stream. | |
static BacktraceData | getBacktrace () |
Gets the current backtrace without rendering it. | |
Backtrace printer. Registers a handler for certain fatal signals and dumps the backtrace if they occur.
Definition at line 81 of file Backtrace.hpp.
void sparta::app::Backtrace::setAsHandler | ( | int | signum = SIGSEGV | ) |
Set this as the handler for a signal.
signum | Signal to handle |