MCPcopy Create free account
hub / github.com/OpenCppCoverage/OpenCppCoverage / OnBreakPoint

Method OnBreakPoint

CppCoverage/CodeCoverageRunner.cpp:169–187  ·  view source on GitHub ↗

-------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

167
168 //-------------------------------------------------------------------------
169 bool CodeCoverageRunner::OnBreakPoint(
170 const EXCEPTION_DEBUG_INFO& exceptionDebugInfo,
171 HANDLE hProcess,
172 HANDLE hThread)
173 {
174 const auto& exceptionRecord = exceptionDebugInfo.ExceptionRecord;
175 auto addressValue = exceptionRecord.ExceptionAddress;
176 Address address{ hProcess, addressValue };
177 auto oldInstruction = executedAddressManager_->MarkAddressAsExecuted(address);
178
179 if (oldInstruction)
180 {
181 breakpoint_->RemoveBreakPoint(address, *oldInstruction);
182 breakpoint_->AdjustEipAfterBreakPointRemoval(hThread);
183 return true;
184 }
185
186 return false;
187 }
188
189 //-------------------------------------------------------------------------
190 void CodeCoverageRunner::LoadModule(HANDLE hProcess,

Callers

nothing calls this directly

Calls 3

MarkAddressAsExecutedMethod · 0.80
RemoveBreakPointMethod · 0.80

Tested by

no test coverage detected