ARB
Functions | Variables
arb_signal.cxx File Reference
#include <SuppressOutput.h>
#include <arb_signal.h>
#include <arb_msg.h>
#include <SigHandler.h>
#include <setjmp.h>
#include <valgrind.h>
#include <arb_backtrace.h>
Include dependency graph for arb_signal.cxx:

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
 

Function Documentation

static __ATTR__NORETURN void sigsegv_handler ( int  sig)
static
void GBK_install_SIGSEGV_handler ( bool  dump_backtrace)
GB_ERROR GBK_test_address ( long address,
long  key 
)
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)

Variable Documentation

bool dump_backtrace_on_sigsegv = false
static

Definition at line 29 of file arb_signal.cxx.

Referenced by GBK_install_SIGSEGV_handler(), and sigsegv_handler().

bool suppress_sigsegv = false
static
jmp_buf return_after_segv
static

Definition at line 31 of file arb_signal.cxx.

Referenced by GBK_raises_SIGSEGV(), GBK_test_address(), and sigsegv_handler().