Skip to content

Commit

Permalink
Bugfix: Is user requested which symbol table but symbol not found, ma…
Browse files Browse the repository at this point in the history
…rk as not in any
  • Loading branch information
Michaelangel007 committed Jan 4, 2022
1 parent ba9388d commit 1f5ca5d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/Debugger/Debugger_Symbols.cpp
Expand Up @@ -140,11 +140,17 @@ int GetSymbolTableFromCommand()
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_ )
{
// Bugfix/User feature: User symbols should be searched first
int iTable = NUM_SYMBOL_TABLES;
if (iTable_)
{
*iTable_ = iTable;
}

while (iTable-- > 0)
{
if (! g_aSymbols[iTable].size())
Expand Down

0 comments on commit 1f5ca5d

Please sign in to comment.