15#ifndef LLVM_SUPPORT_PRETTYSTACKTRACE_H
16#define LLVM_SUPPORT_PRETTYSTACKTRACE_H
93 const char *
const *ArgV;
96 : ArgC(argc), ArgV(argv) {
This file defines the SmallVector class.
PrettyStackTraceEntry - This class is used to represent a frame of the "pretty" stack trace that is d...
virtual ~PrettyStackTraceEntry()
const PrettyStackTraceEntry * getNextEntry() const
getNextEntry - Return the next entry in the list of frames.
friend PrettyStackTraceEntry * ReverseStackTrace(PrettyStackTraceEntry *)
virtual void print(raw_ostream &OS) const =0
print - Emit information about this stack frame to OS.
PrettyStackTraceProgram - This object prints a specified program arguments to the stream as the stack...
void print(raw_ostream &OS) const override
print - Emit information about this stack frame to OS.
PrettyStackTraceProgram(int argc, const char *const *argv)
PrettyStackTraceString - This object prints a specified string (which should not contain newlines) to...
PrettyStackTraceString(const char *str)
void print(raw_ostream &OS) const override
print - Emit information about this stack frame to OS.
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.
This class implements an extremely fast bulk output stream that can only output to a stream.
This is an optimization pass for GlobalISel generic memory operations.
void setBugReportMsg(const char *Msg)
Replaces the generic bug report message that is output upon a crash.
const void * SavePrettyStackState()
Returns the topmost element of the "pretty" stack state.
void RestorePrettyStackState(const void *State)
Restores the topmost element of the "pretty" stack state to State, which should come from a previous ...
void EnablePrettyStackTraceOnSigInfoForThisThread(bool ShouldEnable=true)
Enables (or disables) dumping a "pretty" stack trace when the user sends SIGINFO or SIGUSR1 to the cu...
void EnablePrettyStackTrace()
Enables dumping a "pretty" stack trace when the program crashes.
const char * getBugReportMsg()
Get the bug report message that will be output upon a crash.