Bugfix: Is user requested which symbol table but symbol not found, mark as not in any

This commit is contained in:
michaelangel007
2022-01-04 09:24:52 -08:00
parent ba9388d1d8
commit 1f5ca5d7e7

View File

@@ -140,11 +140,17 @@ int GetSymbolTableFromCommand()
return (g_iCommand - CMD_SYMBOLS_ROM); return (g_iCommand - CMD_SYMBOLS_ROM);
} }
// @param iTable_ Which symbol table the symbol is in if any. If none will be NUM_SYMBOL_TABLES
//=========================================================================== //===========================================================================
const char* FindSymbolFromAddress (WORD nAddress, int * iTable_ ) const char* FindSymbolFromAddress (WORD nAddress, int * iTable_ )
{ {
// Bugfix/User feature: User symbols should be searched first // Bugfix/User feature: User symbols should be searched first
int iTable = NUM_SYMBOL_TABLES; int iTable = NUM_SYMBOL_TABLES;
if (iTable_)
{
*iTable_ = iTable;
}
while (iTable-- > 0) while (iTable-- > 0)
{ {
if (! g_aSymbols[iTable].size()) if (! g_aSymbols[iTable].size())