Tracer  v0.0.1
A platform independant stack trace generator
tracer::LibUnwindTracer Class Reference

Backtrace generator based on libunwind. More...

#include <LibUnwindTracer.hpp>

+ Inheritance diagram for tracer::LibUnwindTracer:
+ Collaboration diagram for tracer::LibUnwindTracer:

Public Member Functions

std::vector< Framebacktrace () override
 Generates the backtrace with libunwind. More...
 
void setContext (void *ctx) override
 Sets the execution context. More...
 

Detailed Description

Backtrace generator based on libunwind.

Definition at line 41 of file LibUnwindTracer.hpp.

Member Function Documentation

◆ backtrace()

std::vector< Frame > LibUnwindTracer::backtrace ( )
overridevirtual

Generates the backtrace with libunwind.

Returns
The frames with the address set

Implements tracer::AbstractTracer.

Definition at line 40 of file LibUnwindTracer.cpp.

◆ setContext()

void LibUnwindTracer::setContext ( void *  ctx)
overridevirtual

Sets the execution context.

Parameters
ctxThe context to set (must point to a ucontext_t struct)

Reimplemented from tracer::AbstractTracer.

Definition at line 74 of file LibUnwindTracer.cpp.


The documentation for this class was generated from the following files: