| 472 | } |
| 473 | |
| 474 | void 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 | |
| 500 | int MIBreakpointController::rowFromDebuggerId(int gdbId) const |
| 501 | { |
no test coverage detected