Debugger: 2.9.1.4 Changed: Show symbol warnings in Orange, and length of symbols in light blue

This commit is contained in:
michaelangel007 2022-01-03 22:15:41 -08:00
parent 48e0fe3a8e
commit aaae1dd6a1
2 changed files with 8 additions and 3 deletions

View File

@ -73,7 +73,7 @@
#define CHC_SYMBOL "`2" // Symbols #define CHC_SYMBOL "`2" // Symbols
#define CHC_ADDRESS "`8" // Hex Address #define CHC_ADDRESS "`8" // Hex Address
#define CHC_ERROR "`1" // Red #define CHC_ERROR "`1" // Red
#define CHC_WARNING "`5" // Purple #define CHC_WARNING "`8" // Orange
#define CHC_INFO "`3" // Yellow #define CHC_INFO "`3" // Yellow
#define CHC_STRING "`6" // #define CHC_STRING "`6" //
#define CHC_EXAMPLE "`:" #define CHC_EXAMPLE "`:"

View File

@ -273,7 +273,7 @@ Update_t CmdSymbols (int nArgs)
//=========================================================================== //===========================================================================
Update_t CmdSymbolsClear (int nArgs) Update_t CmdSymbolsClear (int nArgs)
{ {
SymbolTable_Index_e eSymbolTable = SYMBOLS_USER_1; SymbolTable_Index_e eSymbolTable = SYMBOLS_USER_1;
_CmdSymbolsClear( eSymbolTable ); _CmdSymbolsClear( eSymbolTable );
return (UPDATE_DISASM | UPDATE_SYMBOLS); return (UPDATE_DISASM | UPDATE_SYMBOLS);
} }
@ -648,12 +648,17 @@ int ParseSymbolTable(const std::string & pPathFileName, SymbolTable_Index_e eSym
int nLen = strlen( sName ); int nLen = strlen( sName );
if (nLen > nMaxLen) if (nLen > nMaxLen)
{ {
ConsolePrintFormat( sText, " %sWarn.: %s%s (%d > %d)" ConsolePrintFormat( sText, " %sWarn.: %s%s %s(%s%d %s> %s%d%s)"
, CHC_WARNING , CHC_WARNING
, CHC_SYMBOL , CHC_SYMBOL
, sName , sName
, CHC_ARG_SEP
, CHC_NUM_DEC
, nLen , nLen
, CHC_ARG_SEP
, CHC_NUM_DEC
, nMaxLen , nMaxLen
, CHC_ARG_SEP
); );
ConsoleUpdate(); // Flush buffered output so we don't ask the user to pause ConsoleUpdate(); // Flush buffered output so we don't ask the user to pause
} }