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

Function HitBreakpoint

source/Debugger/Debug.cpp:1118–1130  ·  view source on GitHub ↗

returns the hit type if the breakpoint stops

Source from the content-addressed store, hash-verified

1116
1117// returns the hit type if the breakpoint stops
1118static BreakpointHit_t HitBreakpoint(Breakpoint_t * pBP, BreakpointHit_t eHitType, int iBreakpoint)
1119{
1120 if (pBP->bStop && g_breakpointHitID < 0)
1121 {
1122 g_breakpointHitID = iBreakpoint;
1123 _ASSERT(g_pDebugBreakpointHit == nullptr);
1124 g_pDebugBreakpointHit = pBP;
1125 }
1126
1127 pBP->bHit = true;
1128 ++pBP->nHitCount;
1129 return pBP->bStop ? eHitType : BP_HIT_NONE;
1130}
1131
1132
1133// Returns true if we should continue checking breakpoint details, else false

Callers 3

CheckBreakpointsIOFunction · 0.85
CheckBreakpointsRegFunction · 0.85
CheckBreakpointsVideoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected