LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions | Variables
CrashRecoveryContext.cpp File Reference
#include "llvm/Support/CrashRecoveryContext.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/Config/config.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/ManagedStatic.h"
#include "llvm/Support/Mutex.h"
#include "llvm/Support/ThreadLocal.h"
#include <cstdio>
#include <setjmp.h>
#include <signal.h>
Include dependency graph for CrashRecoveryContext.cpp:

Go to the source code of this file.

Functions

static void CrashRecoverySignalHandler (int Signal)
 
static void RunSafelyOnThread_Dispatch (void *UserData)
 

Variables

static ManagedStatic< sys::MutexgCrashRecoveryContextMutex
 
static bool gCrashRecoveryEnabled = false
 
static ManagedStatic
< sys::ThreadLocal< const
CrashRecoveryContextCleanup > > 
tlIsRecoveringFromCrash
 
static const int Signals [] = { SIGABRT, SIGBUS, SIGFPE, SIGILL, SIGSEGV, SIGTRAP }
 
static const unsigned NumSignals = sizeof(Signals) / sizeof(Signals[0])
 
static struct sigaction PrevActions [NumSignals]
 

Function Documentation

static void CrashRecoverySignalHandler ( int  Signal)
static
static void RunSafelyOnThread_Dispatch ( void *  UserData)
static

Variable Documentation

ManagedStatic<sys::Mutex> gCrashRecoveryContextMutex
static
bool gCrashRecoveryEnabled = false
static
const unsigned NumSignals = sizeof(Signals) / sizeof(Signals[0])
static
struct sigaction PrevActions[NumSignals]
static
const int Signals[] = { SIGABRT, SIGBUS, SIGFPE, SIGILL, SIGSEGV, SIGTRAP }
static
ManagedStatic<sys::ThreadLocal<const CrashRecoveryContextCleanup> > tlIsRecoveringFromCrash
static