From 1f5ca5d7e72273b9e57bab810ccd1a1b2d27e430 Mon Sep 17 00:00:00 2001 From: michaelangel007 Date: Tue, 4 Jan 2022 09:24:52 -0800 Subject: [PATCH] Bugfix: Is user requested which symbol table but symbol not found, mark as not in any --- source/Debugger/Debugger_Symbols.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/Debugger/Debugger_Symbols.cpp b/source/Debugger/Debugger_Symbols.cpp index f945cb29..ffb0f997 100644 --- a/source/Debugger/Debugger_Symbols.cpp +++ b/source/Debugger/Debugger_Symbols.cpp @@ -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())