VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Static Public Member Functions | Protected Types | Static Protected Member Functions | Static Protected Attributes | Private Member Functions
DtMiniDumper Class Reference

This class contains the logic necesary for printing a stack trace. More...

+ Collaboration diagram for DtMiniDumper:

Static Public Member Functions

static void printCallStack (int sig, siginfo_t *info, void *secret)
 Static callback for printing the call stack.

Protected Types

typedef std::map< std::string,
unsigned long > 
AddressSpaceMap

Static Protected Member Functions

static void initializeAddressSpace ()
 Initializes the map of base addresses for loaded object files.
static void objFileAndNameFromStack (char *stackEntry, std::string &objFile, std::string &objFileName)
 Parses the given stack entry for the object file path and base name.
static std::string lookupFileInfo (const std::string &objFile, unsigned long offset)
 Looks up the file and line number for the instruction at offset in the given object file.

Static Protected Attributes

static AddressSpaceMap myAddressSpaceMap
 Maps loaded object file names to base addresses in memory.

Private Member Functions

 DtMiniDumper ()
 Private CTOR (Not implemented - Do not instantiate).

Detailed Description

This class contains the logic necesary for printing a stack trace.

This class looks up the source file name and line number of each entry in the stack by using the addr2line command in conjuction with address space mapping from pmap.

Member Typedef Documentation

typedef std::map<std::string,unsigned long> DtMiniDumper::AddressSpaceMap
protected

Constructor & Destructor Documentation

DtMiniDumper::DtMiniDumper ( )
private

Private CTOR (Not implemented - Do not instantiate).

Member Function Documentation

static void DtMiniDumper::initializeAddressSpace ( )
staticprotected

Initializes the map of base addresses for loaded object files.

Clears ::myAddresSpaceMap if it has already been initialized.

static std::string DtMiniDumper::lookupFileInfo ( const std::string &  objFile,
unsigned long  offset 
)
staticprotected

Looks up the file and line number for the instruction at offset in the given object file.

static void DtMiniDumper::objFileAndNameFromStack ( char *  stackEntry,
std::string &  objFile,
std::string &  objFileName 
)
staticprotected

Parses the given stack entry for the object file path and base name.

static void DtMiniDumper::printCallStack ( int  sig,
siginfo_t *  info,
void *  secret 
)
static

Static callback for printing the call stack.

Member Data Documentation

AddressSpaceMap DtMiniDumper::myAddressSpaceMap
staticprotected

Maps loaded object file names to base addresses in memory.


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

Document ID: Generated on Mon Jun 22 21:18:40 EDT 2020 from SVN revision 213785
Copyright © 2005-2018 MAK Technologies. All Rights Reserved (www.mak.com)