MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / _BWZ_EnableDisableViaArgs

Function _BWZ_EnableDisableViaArgs

source/Debugger/Debug.cpp:2074–2098  ·  view source on GitHub ↗

called by BreakpointsEnable, WatchesEnable, ZeroPagePointersEnable called by BreakpointsDisable, WatchesDisable, ZeroPagePointersDisable ===========================================================================

Source from the content-addressed store, hash-verified

2072// called by BreakpointsDisable, WatchesDisable, ZeroPagePointersDisable
2073//===========================================================================
2074void _BWZ_EnableDisableViaArgs ( int nArgs, Breakpoint_t * aBreakWatchZero, const int nMax, const bool bEnabled )
2075{
2076 int iSlot = 0;
2077
2078 // Enable each breakpoint in the list
2079 while (nArgs)
2080 {
2081 iSlot = g_aArgs[nArgs].nValue;
2082
2083 if (! strcmp(g_aArgs[nArgs].sArg, g_aParameters[ PARAM_WILDSTAR ].m_sName))
2084 {
2085 for ( ; iSlot < nMax; iSlot++ )
2086 {
2087 aBreakWatchZero[ iSlot ].bEnabled = bEnabled;
2088 }
2089 }
2090 else
2091 if ((iSlot >= 0) && (iSlot < nMax))
2092 {
2093 aBreakWatchZero[ iSlot ].bEnabled = bEnabled;
2094 }
2095
2096 nArgs--;
2097 }
2098}
2099
2100//===========================================================================
2101// Called by:

Callers 6

CmdBreakpointDisableFunction · 0.85
CmdBreakpointEnableFunction · 0.85
CmdWatchDisableFunction · 0.85
CmdWatchEnableFunction · 0.85
CmdZeroPageDisableFunction · 0.85
CmdZeroPageEnableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected