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

Function CmdBreakpointAddMem

source/Debugger/Debug.cpp:1901–1925  ·  view source on GitHub ↗

=========================================================================== Pre: nArgs = last valid index into g_aArgs[]

Source from the content-addressed store, hash-verified

1899//===========================================================================
1900// Pre: nArgs = last valid index into g_aArgs[]
1901Update_t CmdBreakpointAddMem (const int nArgs, BreakpointSource_t bpSrc /*= BP_SRC_MEM_RW*/)
1902{
1903 BreakpointSource_t iSrc = bpSrc;
1904 BreakpointOperator_t iCmp = BP_OP_EQUAL;
1905
1906 int iArg = 1;
1907 while (iArg <= nArgs)
1908 {
1909 if (g_aArgs[iArg].bType & TYPE_OPERATOR)
1910 {
1911 return Help_Arg_1( CMD_BREAKPOINT_ADD_MEM );
1912 }
1913 else
1914 {
1915 int dArg = _CmdBreakpointAddCommonArg( nArgs, iArg, iSrc, iCmp );
1916 if (! dArg)
1917 {
1918 return Help_Arg_1( CMD_BREAKPOINT_ADD_MEM );
1919 }
1920 iArg += dArg;
1921 }
1922 }
1923
1924 return UPDATE_BREAKPOINTS | UPDATE_CONSOLE_DISPLAY;
1925}
1926
1927//===========================================================================
1928// Pre: nArgs = last valid index into g_aArgs[]

Callers 5

CmdBreakpointAddSmartFunction · 0.85
CmdBreakpointAddIOFunction · 0.85
CmdBreakpointAddMemAFunction · 0.85
CmdBreakpointAddMemRFunction · 0.85
CmdBreakpointAddMemWFunction · 0.85

Calls 2

Help_Arg_1Function · 0.85

Tested by

no test coverage detected