2010-06-11 15:38:22 +00:00
|
|
|
|
|
|
|
// Variables
|
|
|
|
extern SymbolTable_t g_aSymbols[ NUM_SYMBOL_TABLES ];
|
2021-03-17 20:32:19 +00:00
|
|
|
extern bool g_bSymbolsDisplayMissingFile;
|
2010-06-11 15:38:22 +00:00
|
|
|
|
|
|
|
// Prototypes
|
|
|
|
|
|
|
|
Update_t _CmdSymbolsClear ( SymbolTable_Index_e eSymbolTable );
|
|
|
|
Update_t _CmdSymbolsListTables (int nArgs, int bSymbolTables );
|
|
|
|
Update_t _CmdSymbolsUpdate ( int nArgs, int bSymbolTables );
|
|
|
|
|
|
|
|
bool _CmdSymbolList_Address2Symbol ( int nAddress , int bSymbolTables );
|
|
|
|
bool _CmdSymbolList_Symbol2Address ( LPCTSTR pSymbol, int bSymbolTables );
|
|
|
|
|
|
|
|
// SymbolOffset
|
2019-09-06 16:34:25 +00:00
|
|
|
int ParseSymbolTable ( const std::string & pFileName, SymbolTable_Index_e eWhichTableToLoad, int nSymbolOffset = 0 );
|
2010-06-11 15:38:22 +00:00
|
|
|
|
2021-03-17 20:32:19 +00:00
|
|
|
// Symbol Table / Memory
|
|
|
|
bool FindAddressFromSymbol(const char* pSymbol, WORD* pAddress_ = NULL, int* iTable_ = NULL);
|
|
|
|
WORD GetAddressFromSymbol(const char* symbol); // HACK: returns 0 if symbol not found
|
|
|
|
void SymbolUpdate(SymbolTable_Index_e eSymbolTable, const char* pSymbolName, WORD nAddrss, bool bRemoveSymbol, bool bUpdateSymbol);
|
2022-02-26 17:54:06 +00:00
|
|
|
std::string const* FindSymbolFromAddress(WORD nAdress, int* iTable_ = NULL);
|
|
|
|
std::string const& GetSymbol(WORD nAddress, int nBytes, std::string& strAddressBuf);
|