|
MIRA
|
Encapsulates unix call stack functionality. More...
#include <error/CallStack.h>
Classes | |
| struct | Symbol |
| Contains all information of a single function symbol in the call stack. More... | |
Public Member Functions | |
| CallStack () | |
| Constructor that creates an empty call stack. More... | |
| CallStack (const CallStack &other) | |
| Copy-Constructor. More... | |
| const CallStack & | operator= (const CallStack &other) |
| Assignment operator with similar behaviour as copy-constructor. More... | |
| template<typename Reflector > | |
| void | reflect (Reflector &r) |
| const Symbol & | operator[] (std::size_t i) const |
| Returns the i-th symbol of the call stack. More... | |
| std::size_t | size () const |
| Returns the size of the call stack. More... | |
Static Public Member Functions | |
| static CallStack | backtrace (std::size_t maxSize=10, std::size_t stackStart=1) |
| Creates the call stack object that contains the callstack starting at the current address of the instruction pointer. More... | |
Protected Member Functions | |
| CallStack (void **stack, std::size_t stackSize, std::size_t stackStart) | |
| Constructor for internal use only. More... | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const CallStack &stack) |
| Prints the whole stack into a stream in a similar format as the GDB. More... | |
Encapsulates unix call stack functionality.
It allows to retrieve the current call stack with all symbols to the functions. The stack can be printed to a stream in a similar format as in the GDB using the << operator.
|
inlineprotected |
Constructor for internal use only.
|
inline |
Constructor that creates an empty call stack.
Assignment operator with similar behaviour as copy-constructor.
|
inline |
| const Symbol& operator[] | ( | std::size_t | i | ) | const |
Returns the i-th symbol of the call stack.
|
inline |
Returns the size of the call stack.
|
static |
Creates the call stack object that contains the callstack starting at the current address of the instruction pointer.
|
friend |
Prints the whole stack into a stream in a similar format as the GDB.
1.8.14