#include <stacktrace.h>
Static Public Member Functions | |
static Int | GetBacktrace (Int skip, const Block< void * > &functionPointers) |
static MAXON_METHOD Bool | FindSymbol (const void *function, const Block< Char > &name, const Block< Char > &module, Int &offset) |
Private Member Functions | |
MAXON_INTERFACE_NONVIRTUAL (StackTrace, MAXON_REFERENCE_NONE, "net.maxon.interface.stacktrace") | |
|
private |
Returns a back trace of the current thread's call stack. The array is terminated with a nullptr if not all entries are used.
[in] | skip | The number of stack frames at the start of trace to be skipped. |
[in,out] | functionPointers | Used to store the function pointers on the stack. |
|
static |
Searches the symbol belonging to the function pointer. If available the module name and offset in the function are returned as well.
[in] | function | Function pointer from the call stack. |
[in,out] | name | Used to return the function name. |
[in,out] | module | Used to return the module name if available. |
[out] | offset | Used to return the offset within the function if available. |