LLVM API Documentation

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 setThreadBackgroundPriority ()
static bool hasThreadBackgroundPriority ()
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 []
static const unsigned NumSignals = sizeof(Signals) / sizeof(Signals[0])
static struct sigaction PrevActions [NumSignals]

Function Documentation

static void CrashRecoverySignalHandler ( int  Signal) [static]
static bool hasThreadBackgroundPriority ( ) [static]
static void RunSafelyOnThread_Dispatch ( void *  UserData) [static]
static void setThreadBackgroundPriority ( ) [static]

Definition at line 336 of file CrashRecoveryContext.cpp.

Referenced by RunSafelyOnThread_Dispatch().


Variable Documentation

const unsigned NumSignals = sizeof(Signals) / sizeof(Signals[0]) [static]
struct sigaction PrevActions[NumSignals] [static]
const int Signals[] [static]
Initial value:
    { SIGABRT, SIGBUS, SIGFPE, SIGILL, SIGSEGV, SIGTRAP }

Definition at line 235 of file CrashRecoveryContext.cpp.

Referenced by llvm::CrashRecoveryContext::Disable(), and llvm::CrashRecoveryContext::Enable().