23 lines
885 B
C++
23 lines
885 B
C++
#ifndef _SYMBOLINFO_H
|
|
#define _SYMBOLINFO_H
|
|
|
|
#include "_global.h"
|
|
|
|
void SymEnum(duint Base, CBSYMBOLENUM EnumCallback, void* UserData);
|
|
void SymEnumFromCache(duint Base, CBSYMBOLENUM EnumCallback, void* UserData);
|
|
bool SymGetModuleList(std::vector<SYMBOLMODULEINFO>* List);
|
|
void SymUpdateModuleList();
|
|
void SymDownloadAllSymbols(const char* SymbolStore);
|
|
bool SymAddrFromName(const char* Name, duint* Address);
|
|
String SymGetSymbolicName(duint Address);
|
|
|
|
/**
|
|
\brief Gets the source code file name and line from an address.
|
|
\param cip The address to check.
|
|
\param [out] szFileName Source code file. Buffer of MAX_STRING_SIZE length. UTF-8. Can be null.
|
|
\param [out] nLine Line number. Can be null.
|
|
\return true if it succeeds, false if it fails.
|
|
*/
|
|
bool SymGetSourceLine(duint Cip, char* FileName, int* Line, DWORD* displacement = nullptr);
|
|
|
|
#endif // _SYMBOLINFO_H
|