| 322 | } |
| 323 | |
| 324 | void MIBreakpointController::breakpointAboutToBeDeleted(int row) |
| 325 | { |
| 326 | if (m_ignoreChanges > 0) |
| 327 | return; |
| 328 | |
| 329 | BreakpointDataPtr breakpoint = m_breakpoints.at(row); |
| 330 | m_breakpoints.removeAt(row); |
| 331 | |
| 332 | if (breakpoint->debuggerId < 0) { |
| 333 | // Two possibilities: |
| 334 | // (1) Breakpoint has never been sent to GDB, so we're done |
| 335 | // (2) Breakpoint has been sent to GDB, but we haven't received |
| 336 | // the response yet; the response handler will delete the |
| 337 | // breakpoint. |
| 338 | return; |
| 339 | } |
| 340 | |
| 341 | if (debugSession()->debuggerStateIsOn(s_dbgNotStarted)) |
| 342 | return; |
| 343 | |
| 344 | debugSession()->addCommand( |
| 345 | BreakDelete, QString::number(breakpoint->debuggerId), |
| 346 | new DeleteHandler(this, breakpoint), CmdImmediately); |
| 347 | m_pendingDeleted << breakpoint; |
| 348 | } |
| 349 | |
| 350 | // Note: despite the name, this is in fact session state changed. |
| 351 | void MIBreakpointController::debuggerStateChanged(IDebugSession::DebuggerState state) |
nothing calls this directly
no test coverage detected