Bugfix: Is user requested which symbol table but symbol not found, mark as not in any
This commit is contained in:
parent
ba9388d1d8
commit
1f5ca5d7e7
1 changed files with 6 additions and 0 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Reference in a new issue