| 545 | } |
| 546 | |
| 547 | void MIBreakpointController::notifyBreakpointDeleted(const AsyncRecord& r) |
| 548 | { |
| 549 | const int gdbId = r[QStringLiteral("id")].toInt(); |
| 550 | const int row = rowFromDebuggerId(gdbId); |
| 551 | |
| 552 | if (row < 0) { |
| 553 | // The user may also have deleted the breakpoint via the UI simultaneously |
| 554 | return; |
| 555 | } |
| 556 | |
| 557 | IgnoreChanges ignoreChanges(*this); |
| 558 | breakpointModel()->removeRow(row); |
| 559 | m_breakpoints.removeAt(row); |
| 560 | } |
| 561 | |
| 562 | void MIBreakpointController::createFromDebugger(const Value& miBkpt) |
| 563 | { |
no test coverage detected