llvm::sys::PrintStackTrace

Print the stack trace using the given raw_ostream object.

Synopsis

Declared in <llvm/Support/Signals.h>

void
PrintStackTrace(
    raw_ostream& OS,
    int Depth = 0);

Parameters

NameDescription
Depthrefers to the number of stackframes to print. If not specified, the entire frame is printed.
OSThis class implements an extremely fast bulk output stream that can only output to a stream. It does not support seeking, reopening, rewinding, line buffered disciplines etc. It is a simple buffer that outputs a chunk at a time.