SymbolificationInterface Class Reference

#include <symbolification.h>

Public Member Functions

MAXON_METHOD Result< void > Init (const Url &symbolFile, const String &architecture)
 
MAXON_METHOD Result< void > FindSymbol (UInt64 addr, String &file, Int &line, String &function)
 

Static Public Member Functions

static MAXON_METHOD SymbolificationInterfaceAlloc (MAXON_SOURCE_LOCATION_DECLARATION)
 

Private Member Functions

 MAXON_INTERFACE_NONVIRTUAL (SymbolificationInterface, MAXON_REFERENCE_NORMAL, "net.maxon.interface.symbolification")
 

Member Function Documentation

◆ MAXON_INTERFACE_NONVIRTUAL()

MAXON_INTERFACE_NONVIRTUAL ( SymbolificationInterface  ,
MAXON_REFERENCE_NORMAL  ,
"net.maxon.interface.symbolification"   
)
private

◆ Alloc()

Parameters
[in]allocLocationSource location.

◆ Init()

MAXON_METHOD Result<void> Init ( const Url symbolFile,
const String architecture 
)

Initializes the symbolification interface.

Parameters
[in]symbolFileRefers to a dsym bundle or pdb file (must be stored on the local file system).
[in]architectureUsed to select the architecture (for libraries with multiple binaries, for example "x86_64").
Returns
OK on success.

◆ FindSymbol()

MAXON_METHOD Result<void> FindSymbol ( UInt64  addr,
String file,
Int line,
String function 
)

Returns the file, line number and function name corresponding to an address.

Parameters
[in]addrAddress (must be relative to the start of the module).
[out]fileName of the source file.
[out]lineLine in the source file.
[out]functionName of the function.
Returns
OK on success.