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

Function CmdBreakpointAddSmart

source/Debugger/Debug.cpp:1618–1638  ·  view source on GitHub ↗

smart breakpoint ===========================================================================

Source from the content-addressed store, hash-verified

1616// smart breakpoint
1617//===========================================================================
1618Update_t CmdBreakpointAddSmart (int nArgs)
1619{
1620 unsigned int nAddress = g_aArgs[1].nValue;
1621
1622 if (! nArgs)
1623 {
1624 nArgs = 1;
1625 g_aArgs[ nArgs ].nValue = g_nDisasmCurAddress;
1626 }
1627
1628 if ((nAddress >= APPLE_IO_BEGIN) && (nAddress <= APPLE_IO_END))
1629 {
1630 return CmdBreakpointAddIO( nArgs );
1631 }
1632 else
1633 {
1634 CmdBreakpointAddReg( nArgs );
1635 CmdBreakpointAddMem( nArgs );
1636 return UPDATE_BREAKPOINTS;
1637 }
1638}
1639
1640
1641//===========================================================================

Callers

nothing calls this directly

Calls 3

CmdBreakpointAddIOFunction · 0.85
CmdBreakpointAddRegFunction · 0.85
CmdBreakpointAddMemFunction · 0.85

Tested by

no test coverage detected