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

Function DebuggerCheckMemBreakpoints

source/Debugger/Debug.cpp:1384–1405  ·  view source on GitHub ↗

Only called by Hardisk.cpp

Source from the content-addressed store, hash-verified

1382
1383// Only called by Hardisk.cpp
1384bool DebuggerCheckMemBreakpoints (WORD nAddress, WORD nSize, bool isDmaToMemory)
1385{
1386 // NB. Caller handles when (addr+size) wraps on 64K
1387
1388 for (int iBreakpoint = 0; iBreakpoint < MAX_BREAKPOINTS; iBreakpoint++)
1389 {
1390 Breakpoint_t* pBP = &g_aBreakpoints[iBreakpoint];
1391 if (_BreakpointValid(pBP))
1392 {
1393 if (pBP->eSource == BP_SRC_MEM_RW || (pBP->eSource == BP_SRC_MEM_READ_ONLY && !isDmaToMemory) || (pBP->eSource == BP_SRC_MEM_WRITE_ONLY && isDmaToMemory))
1394 {
1395 if (_CheckBreakpointRange(pBP, nAddress, nSize))
1396 {
1397 DebuggerBreakOnDma(nAddress, nSize, isDmaToMemory, iBreakpoint);
1398 return true;
1399 }
1400 }
1401 }
1402 }
1403
1404 return false;
1405}
1406
1407//===========================================================================
1408int CheckBreakpointsIO ()

Callers 1

CmdExecuteMethod · 0.85

Calls 3

_BreakpointValidFunction · 0.85
_CheckBreakpointRangeFunction · 0.85
DebuggerBreakOnDmaFunction · 0.85

Tested by

no test coverage detected