Debugger: 2.9.2.6 Added: QoL: Turning a symbol table on/off now shows the current status.

This commit is contained in:
michaelangel007
2025-02-06 11:48:28 -08:00
parent 977cc01d85
commit f44d058a09
3 changed files with 19 additions and 4 deletions

View File

@@ -1,4 +1,5 @@
/*
2.9.2.6 Added: QoL: Turning a symbol table on/off now shows the current status.
2.9.2.5 Added: Symbol table for DOS 3.3 using file A2_DOS33.SYM2
Add symbols via: SYMDOS33 <symbol> = <addr>
To disable: SYMDOS33 OFF

View File

@@ -53,7 +53,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#define MAKE_VERSION(a,b,c,d) ((a<<24) | (b<<16) | (c<<8) | (d))
// See /docs/Debugger_Changelog.txt for full details
const int DEBUGGER_VERSION = MAKE_VERSION(2,9,2,5);
const int DEBUGGER_VERSION = MAKE_VERSION(2,9,2,6);
// Public _________________________________________________________________________________________

View File

@@ -281,7 +281,7 @@ Update_t CmdSymbolsClear (int nArgs)
// Format the summary of the specified symbol table
//===========================================================================
std::string _CmdSymbolsInfoHeader( int iTable, int nDisplaySize /* = 0 */ )
std::string _CmdSymbolsInfoHeader ( int iTable, int nDisplaySize /* = 0 */ )
{
// Common case is to use/calc the table size
bool bActive = (g_bDisplaySymbolTables & (1 << iTable)) ? true : false;
@@ -296,6 +296,20 @@ std::string _CmdSymbolsInfoHeader( int iTable, int nDisplaySize /* = 0 */ )
);
}
//===========================================================================
std::string _CmdSymbolsSummaryStatus ( int iTable )
{
bool bActive = (g_bDisplaySymbolTables & (1 << iTable)) ? true : false;
int iParam = bActive
? PARAM_ON
: PARAM_OFF
;
std::string sSymbolSummary = _CmdSymbolsInfoHeader( iTable );
sSymbolSummary += StrFormat( "%s(%s%s%s)", CHC_ARG_SEP, CHC_COMMAND, g_aParameters[ iParam ].m_sName, CHC_ARG_SEP );
return sSymbolSummary;
}
//===========================================================================
Update_t CmdSymbolsInfo (int nArgs)
{
@@ -1057,7 +1071,7 @@ Update_t _CmdSymbolsCommon ( int nArgs, int bSymbolTables )
int iTable = _GetSymbolTableFromFlag( bSymbolTables );
if (iTable != NUM_SYMBOL_TABLES)
{
ConsolePrint( _CmdSymbolsInfoHeader( iTable ).c_str() );
ConsolePrint( _CmdSymbolsSummaryStatus( iTable ).c_str() );
}
return ConsoleUpdate() | UPDATE_DISASM;
}
@@ -1068,7 +1082,7 @@ Update_t _CmdSymbolsCommon ( int nArgs, int bSymbolTables )
int iTable = _GetSymbolTableFromFlag( bSymbolTables );
if (iTable != NUM_SYMBOL_TABLES)
{
ConsolePrint( _CmdSymbolsInfoHeader( iTable ).c_str() );
ConsolePrint( _CmdSymbolsSummaryStatus( iTable ).c_str() );
}
return ConsoleUpdate() | UPDATE_DISASM;
}