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

Generic backtrace genrator using BFD. More...

#include <btexception.hpp>

List of all members.

Public Member Functions

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

Detailed Description

Generic backtrace genrator using BFD.

This class can create a human readable backtrace.

Definition at line 59 of file btexception.hpp.


Constructor & Destructor Documentation

tracing::bfd_tracer::bfd_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::bfd_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: