mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-12-23 00:30:17 +00:00
#479 (b) Add Warning for long symbols when symbol table is loaded
This commit is contained in:
parent
a276bef7df
commit
975230b46d
@ -1,4 +1,5 @@
|
||||
/*
|
||||
.11 Added:"Warning" for long symbols when symbol table is loaded
|
||||
.10 Changed: "Warning" of symbols that alias to "Info."
|
||||
.9 Continuation of 2.8.0.8: Fix overflowing disassembly pane for long symbols
|
||||
.8 Fixed: Inactive Language Card bank now grayed out, main memory no longer double inverse.
|
||||
|
@ -555,6 +555,8 @@ int ParseSymbolTable( TCHAR *pPathFileName, SymbolTable_Index_e eSymbolTableWrit
|
||||
char sText[ CONSOLE_WIDTH * 3 ];
|
||||
bool bFileDisplayed = false;
|
||||
|
||||
const int nMaxLen = min(MAX_TARGET_LEN,MAX_SYMBOLS_LEN);
|
||||
|
||||
int nSymbolsLoaded = 0;
|
||||
|
||||
if (! pPathFileName)
|
||||
@ -637,6 +639,20 @@ int ParseSymbolTable( TCHAR *pPathFileName, SymbolTable_Index_e eSymbolTableWrit
|
||||
WORD nAddressPrev;
|
||||
int iTable;
|
||||
|
||||
// 2.9.0.11 Bug #479
|
||||
int nLen = strlen( sName );
|
||||
if (nLen >= nMaxLen)
|
||||
{
|
||||
ConsolePrintFormat( sText, " %sWarn.: %s%s (%d > %d)"
|
||||
, CHC_WARNING
|
||||
, CHC_SYMBOL
|
||||
, sName
|
||||
, nLen
|
||||
, nMaxLen
|
||||
);
|
||||
ConsoleUpdate(); // Flush buffered output so we don't ask the user to pause
|
||||
}
|
||||
|
||||
// 2.8.0.5 Bug #244 (Debugger) Duplicate symbols for identical memory addresses in APPLE2E.SYM
|
||||
const char *pSymbolPrev = FindSymbolFromAddress( (WORD)nAddress, &iTable ); // don't care which table it is in
|
||||
if( pSymbolPrev )
|
||||
|
Loading…
Reference in New Issue
Block a user