#include <qcrashhandler_p.h>
Definition at line 64 of file qcrashhandler_p.h.
◆ crashHandler()
◆ initialize()
void QSegfaultHandler::initialize |
( |
char ** |
argv, |
|
|
int |
argc |
|
) |
| |
|
static |
Definition at line 409 of file qcrashhandler.cpp.
414 SignalAction.sa_flags = 0;
416 sigemptyset(&SignalAction.sa_mask);
friend void qt_signal_handler(int)
int sigaction(int, const struct sigaction *, struct sigaction *)
static void init_backtrace(char **argv, int argc)
◆ installCrashHandler()
◆ qt_signal_handler
void qt_signal_handler |
( |
int |
sig | ) |
|
|
friend |
Definition at line 385 of file qcrashhandler.cpp.
Referenced by initialize().
387 signal(sig, SIG_DFL);
389 (*QSegfaultHandler::callback)();
393 if(
char *crash_loc = ::getenv(
"QT_CRASH_OUTPUT")) {
394 if(FILE *new_outb = fopen(crash_loc,
"w")) {
395 fprintf(stderr,
"Crash (backtrace written to %s)!!!\n", crash_loc);
399 fprintf(outb,
"Crash!!!\n");
static QtCrashHandler callback
static void print_backtrace(FILE *outb)
◆ callback
The documentation for this class was generated from the following files: