FreeRDP-WebConnect WebSockets gateway  1.0.0.167
 All Classes Namespaces Functions Variables Typedefs Enumerations Friends Pages
tracing::dwarf_tracer Class Reference

Generic backtrace genrator using Dwarf. More...

#include <btexception.hpp>

List of all members.

Public Member Functions

 dwarf_tracer (int _maxframes)
 Constructs a new instance, representing the current stack.
 ~dwarf_tracer ()
 Releases all internal resources.
const std::string & trace (int skip) const
 Produces a multi-line human readable stack trace.
 dwarf_tracer (const dwarf_tracer &)
 Copy constructor.
dwarf_traceroperator= (const dwarf_tracer &)
 Assignement operator.

Detailed Description

Generic backtrace genrator using Dwarf.

This class can create a human readable backtrace.

Definition at line 106 of file btexception.hpp.


Constructor & Destructor Documentation

tracing::dwarf_tracer::dwarf_tracer ( int  _maxframes)

Constructs a new instance, representing the current stack.

Parameters:
_maxframesThe maximum number of stack frames to capture.

Member Function Documentation

const std::string& tracing::dwarf_tracer::trace ( int  skip) const

Produces a multi-line human readable stack trace.

If the current executable contains debug symbol information the function names and source line numbers are used, otherwise, the stack trace contains only hexadecimal addresses.

Parameters:
skipNumber of frames to skip.
Returns:
A multi line string, containing the backtrace.

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