Backtrace formatting and parsing

Functions

void senf::formatBacktrace (std::ostream &os, void **backtrace, int numEntries)
 Format a given backtrace. More...
 
void senf::backtrace (std::ostream &os, int numEntries)
 Write a backtrace to os. More...
 

Detailed Description

These functions help format and parse backtrace information as returned by the glibc backtrace function.

Function Documentation

◆ backtrace()

void senf::backtrace ( std::ostream &  os,
int  numEntries 
)

Write a backtrace to os.

backtrace() will write a backtrace of the current call stack to os.

Definition at line 80 of file Backtrace.cc.

◆ formatBacktrace()

void senf::formatBacktrace ( std::ostream &  os,
void **  backtrace,
int  numEntries 
)

Format a given backtrace.

This functions will write backtrace formatted to os. This includes demangling symbol names and interpreting some additional kernel symbols.

Definition at line 34 of file Backtrace.cc.