ARB
|
#include <SuppressOutput.h>
#include <arb_signal.h>
#include <arb_msg.h>
#include <SigHandler.h>
#include <setjmp.h>
#include <valgrind.h>
#include <arb_backtrace.h>
Go to the source code of this file.
Functions | |
static __ATTR__NORETURN void | sigsegv_handler (int sig) |
void | GBK_install_SIGSEGV_handler (bool dump_backtrace) |
GB_ERROR | GBK_test_address (long *address, long key) |
bool | GBK_running_on_valgrind () |
size_t | GBK_getNonfreeableAddress () |
bool | GBK_raises_SIGSEGV (void(*cb)(void)) |
Variables | |
static bool | dump_backtrace_on_sigsegv = false |
static bool | suppress_sigsegv = false |
static jmp_buf | return_after_segv |
|
static |
Definition at line 33 of file arb_signal.cxx.
References ARB_CRASH_CODE, dump_backtrace_on_sigsegv, GBK_dump_backtrace(), GBS_global_string(), return_after_segv, and suppress_sigsegv.
Referenced by GBK_install_SIGSEGV_handler(), and GBK_raises_SIGSEGV().
void GBK_install_SIGSEGV_handler | ( | bool | dump_backtrace | ) |
Definition at line 47 of file arb_signal.cxx.
References dump_backtrace_on_sigsegv, INSTALL_SIGHANDLER, sigsegv_handler(), and UNINSTALL_SIGHANDLER.
Referenced by GB_init_gb().
Definition at line 58 of file arb_signal.cxx.
References arb_assert, error(), fputc(), fputs(), GBS_global_string(), implicated, NULp, return_after_segv, and suppress_sigsegv.
bool GBK_running_on_valgrind | ( | void | ) |
Definition at line 98 of file arb_signal.cxx.
References RUNNING_ON_VALGRIND.
size_t GBK_getNonfreeableAddress | ( | void | ) |
Definition at line 102 of file arb_signal.cxx.
References suppress_sigsegv.
bool GBK_raises_SIGSEGV | ( | void(*)(void) | cb | ) |
Definition at line 111 of file arb_signal.cxx.
References arb_assert, cb, implicated, INSTALL_SIGHANDLER, return_after_segv, sigsegv_handler(), BackTraceInfo::suppress(), suppress_sigsegv, and UNINSTALL_SIGHANDLER.
|
static |
Definition at line 29 of file arb_signal.cxx.
Referenced by GBK_install_SIGSEGV_handler(), and sigsegv_handler().
|
static |
Definition at line 30 of file arb_signal.cxx.
Referenced by GBK_getNonfreeableAddress(), GBK_raises_SIGSEGV(), GBK_test_address(), and sigsegv_handler().
|
static |
Definition at line 31 of file arb_signal.cxx.
Referenced by GBK_raises_SIGSEGV(), GBK_test_address(), and sigsegv_handler().