MCPcopy Create free account
hub / github.com/KDE/kdevelop / recalculateState

Method recalculateState

plugins/debuggercommon/mibreakpointcontroller.cpp:474–498  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

472}
473
474void MIBreakpointController::recalculateState(int row)
475{
476 BreakpointDataPtr breakpoint = m_breakpoints.at(row);
477
478 if (breakpoint->errors == 0)
479 updateErrorText(row, QString());
480
481 Breakpoint::BreakpointState newState = Breakpoint::NotStartedState;
482 if (debugSession()->state() != IDebugSession::EndedState &&
483 debugSession()->state() != IDebugSession::NotStartedState) {
484 if (!debugSession()->debuggerStateIsOn(s_dbgNotStarted)) {
485 if (breakpoint->dirty == 0 && breakpoint->sent == 0) {
486 if (breakpoint->pending) {
487 newState = Breakpoint::PendingState;
488 } else {
489 newState = Breakpoint::CleanState;
490 }
491 } else {
492 newState = Breakpoint::DirtyState;
493 }
494 }
495 }
496
497 updateState(row, newState);
498}
499
500int MIBreakpointController::rowFromDebuggerId(int gdbId) const
501{

Callers 2

handleMethod · 0.80
handleMethod · 0.80

Calls 5

updateStateFunction · 0.85
debuggerStateIsOnMethod · 0.80
QStringClass · 0.50
atMethod · 0.45
stateMethod · 0.45

Tested by

no test coverage detected