mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-08-05 11:25:05 +00:00
Debugger: 2.9.2.6 Added: QoL: Turning a symbol table on/off now shows the current status.
This commit is contained in:
@@ -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
|
||||
|
@@ -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 _________________________________________________________________________________________
|
||||
|
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user