MCPcopy Create free account
hub / github.com/Vector35/debugger / RunToAndWaitInternal

Method RunToAndWaitInternal

core/debuggercontroller.cpp:655–679  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

653
654
655DebugStopReason DebuggerController::RunToAndWaitInternal(const std::vector<uint64_t>& remoteAddresses)
656{
657 m_userRequestedBreak = false;
658
659 for (uint64_t remoteAddress : remoteAddresses)
660 {
661 if (!m_state->GetBreakpoints()->ContainsAbsolute(remoteAddress))
662 {
663 m_adapter->AddBreakpoint(remoteAddress);
664 }
665 }
666
667 auto reason = GoAndWaitInternal();
668
669 for (uint64_t remoteAddress : remoteAddresses)
670 {
671 if (!m_state->GetBreakpoints()->ContainsAbsolute(remoteAddress))
672 {
673 m_adapter->RemoveBreakpoint(remoteAddress);
674 }
675 }
676
677 NotifyStopped(reason);
678 return reason;
679}
680
681
682bool DebuggerController::RunTo(const std::vector<uint64_t>& remoteAddresses)

Callers

nothing calls this directly

Calls 4

ContainsAbsoluteMethod · 0.80
GetBreakpointsMethod · 0.45
AddBreakpointMethod · 0.45
RemoveBreakpointMethod · 0.45

Tested by

no test coverage detected