MIRA
Public Member Functions | Public Attributes | Friends | List of all members
CallStack::Symbol Struct Reference

Contains all information of a single function symbol in the call stack. More...

#include <error/CallStack.h>

Public Member Functions

 Symbol ()
 
template<typename Reflector >
void reflect (Reflector &r)
 
std::string sourceLocation () const
 Tries to obtain the source file name and line number for the given symbol using the debug information and the symbol table. More...
 

Public Attributes

int64 address
 The address of the code portion as a 64 bit integer. More...
 
std::string addressStr
 The address of the code portion in a "human readable" format. More...
 
int64 offset
 The corresponding offset. More...
 
std::string name
 The mangled name of the function. More...
 
std::string nameDemangled
 The demangled name of the function (on Linux only available, if CALLSTACK_LINUX_USE_DEMANGLE is defined, otherwise equal to name) More...
 
std::string file
 the binary file More...
 

Friends

MIRA_BASE_EXPORT std::ostream & operator<< (std::ostream &os, const Symbol &s)
 Prints the symbol in the similar format as the GDB shows function symbols into the stream. More...
 

Detailed Description

Contains all information of a single function symbol in the call stack.

Constructor & Destructor Documentation

◆ Symbol()

Symbol ( )
inline

Member Function Documentation

◆ reflect()

void reflect ( Reflector &  r)
inline

◆ sourceLocation()

std::string sourceLocation ( ) const

Tries to obtain the source file name and line number for the given symbol using the debug information and the symbol table.

On Linux: Only available if CALLSTACK_LINUX_USE_SYMBOLTABLE is defined and debug information is compiled into the binaries. On Windows: Only available if debug information is compiled into the binaries.

Friends And Related Function Documentation

◆ operator<<

MIRA_BASE_EXPORT std::ostream& operator<< ( std::ostream &  os,
const Symbol s 
)
friend

Prints the symbol in the similar format as the GDB shows function symbols into the stream.

Member Data Documentation

◆ address

int64 address

The address of the code portion as a 64 bit integer.

◆ addressStr

std::string addressStr

The address of the code portion in a "human readable" format.

◆ offset

int64 offset

The corresponding offset.

◆ name

std::string name

The mangled name of the function.

◆ nameDemangled

std::string nameDemangled

The demangled name of the function (on Linux only available, if CALLSTACK_LINUX_USE_DEMANGLE is defined, otherwise equal to name)

◆ file

std::string file

the binary file


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