LLVM API Documentation
#include "llvm/Support/CrashRecoveryContext.h"#include "llvm/ADT/SmallString.h"#include "llvm/Config/config.h"#include "llvm/Support/ErrorHandling.h"#include "llvm/Support/Mutex.h"#include "llvm/Support/ThreadLocal.h"#include <cstdio>#include <setjmp.h>#include <signal.h>
Go to the source code of this file.
Functions | |
| static void | CrashRecoverySignalHandler (int Signal) |
| static void | RunSafelyOnThread_Dispatch (void *UserData) |
Variables | |
| static sys::Mutex | gCrashRecoveryContexMutex |
| static bool | gCrashRecoveryEnabled = false |
| static 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] |
| static void CrashRecoverySignalHandler | ( | int | Signal | ) | [static] |
Definition at line 230 of file CrashRecoveryContext.cpp.
References llvm::CrashRecoveryContext::Disable(), and llvm::sys::ThreadLocal< T >::get().
Referenced by llvm::CrashRecoveryContext::Enable().
| static void RunSafelyOnThread_Dispatch | ( | void * | UserData | ) | [static] |
Definition at line 336 of file CrashRecoveryContext.cpp.
Referenced by llvm::CrashRecoveryContext::RunSafelyOnThread().
sys::Mutex gCrashRecoveryContexMutex [static] |
Definition at line 58 of file CrashRecoveryContext.cpp.
Referenced by llvm::CrashRecoveryContext::Disable(), and llvm::CrashRecoveryContext::Enable().
bool gCrashRecoveryEnabled = false [static] |
Definition at line 59 of file CrashRecoveryContext.cpp.
Referenced by llvm::CrashRecoveryContext::Disable(), llvm::CrashRecoveryContext::Enable(), llvm::CrashRecoveryContext::GetCurrent(), and llvm::CrashRecoveryContext::RunSafely().
const unsigned NumSignals = sizeof(Signals) / sizeof(Signals[0]) [static] |
Definition at line 227 of file CrashRecoveryContext.cpp.
Referenced by llvm::CrashRecoveryContext::Disable(), and llvm::CrashRecoveryContext::Enable().
struct sigaction PrevActions[NumSignals] [static] |
Definition at line 228 of file CrashRecoveryContext.cpp.
Referenced by llvm::CrashRecoveryContext::Disable(), and llvm::CrashRecoveryContext::Enable().
const int Signals[] = { SIGABRT, SIGBUS, SIGFPE, SIGILL, SIGSEGV, SIGTRAP } [static] |
Definition at line 226 of file CrashRecoveryContext.cpp.
Referenced by llvm::CrashRecoveryContext::Disable(), and llvm::CrashRecoveryContext::Enable().
sys::ThreadLocal<const CrashRecoveryContextCleanup> tlIsRecoveringFromCrash [static] |
Definition at line 62 of file CrashRecoveryContext.cpp.
Referenced by llvm::CrashRecoveryContext::isRecoveringFromCrash(), and llvm::CrashRecoveryContext::~CrashRecoveryContext().