|
LLVM
3.7.0
|
#include "llvm/Support/PrettyStackTrace.h"#include "llvm-c/Core.h"#include "llvm/ADT/SmallString.h"#include "llvm/Config/config.h"#include "llvm/Support/Compiler.h"#include "llvm/Support/Signals.h"#include "llvm/Support/Watchdog.h"#include "llvm/Support/raw_ostream.h"Go to the source code of this file.
Functions | |
| static unsigned | PrintStack (const PrettyStackTraceEntry *Entry, raw_ostream &OS) |
| static void | PrintCurStackTrace (raw_ostream &OS) |
| PrintCurStackTrace - Print the current stack trace to the specified stream. More... | |
| static void | CrashHandler (void *) |
| CrashHandler - This callback is run if a fatal signal is delivered to the process, it prints the pretty stack trace. More... | |
| static bool | RegisterCrashPrinter () |
| void | LLVMEnablePrettyStackTrace () |
| Enable LLVM's built-in stack trace code. More... | |
Variables | |
| static LLVM_THREAD_LOCAL const PrettyStackTraceEntry * | PrettyStackTraceHead |
|
static |
CrashHandler - This callback is run if a fatal signal is delivered to the process, it prints the pretty stack trace.
Definition at line 85 of file PrettyStackTrace.cpp.
References llvm::c_str(), llvm::SmallVectorBase::empty(), llvm::errs(), PrintCurStackTrace(), and llvm::SmallString< InternalLen >::str().
Referenced by RegisterCrashPrinter().
|
static |
PrintCurStackTrace - Print the current stack trace to the specified stream.
Definition at line 56 of file PrettyStackTrace.cpp.
References llvm::raw_ostream::flush(), PrettyStackTraceHead, and PrintStack().
Referenced by CrashHandler().
|
static |
Definition at line 42 of file PrettyStackTrace.cpp.
References llvm::PrettyStackTraceEntry::getNextEntry(), and llvm::PrettyStackTraceEntry::print().
Referenced by PrintCurStackTrace().
|
static |
Definition at line 143 of file PrettyStackTrace.cpp.
References llvm::sys::AddSignalHandler(), and CrashHandler().
Referenced by llvm::EnablePrettyStackTrace().
|
static |
Definition at line 39 of file PrettyStackTrace.cpp.
Referenced by llvm::PrettyStackTraceEntry::PrettyStackTraceEntry(), PrintCurStackTrace(), and llvm::PrettyStackTraceEntry::~PrettyStackTraceEntry().
1.8.6