StackTrace Class Reference

#include <stacktrace.h>

静态公共成员函数

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)

私有成员函数

  MAXON_INTERFACE_NONVIRTUAL ( StackTrace , MAXON_REFERENCE_NONE , "net.maxon.interface.stacktrace")

成员函数文档编制

◆  MAXON_INTERFACE_NONVIRTUAL()

MAXON_INTERFACE_NONVIRTUAL ( StackTrace   ,
MAXON_REFERENCE_NONE   ,
"net.maxon.interface.stacktrace"   
)
private

◆  GetBacktrace()

static Int GetBacktrace ( Int   skip ,
const Block < void * > &  functionPointers  
)
static

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.
返回
The number of pointers returned.

◆  FindSymbol()

static MAXON_METHOD Bool FindSymbol ( const void *  function ,
const Block < Char > &  name ,
const Block < Char > &  module ,
Int offset  
)
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.
返回
True if the function name could be determined (otherwise name contains the pointer as string).