mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-08-15 18:27:29 +00:00
Bugfix: Is user requested which symbol table but symbol not found, mark as not in any
This commit is contained in:
@@ -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())
|
||||||
|
Reference in New Issue
Block a user