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

Method breakpointAboutToBeDeleted

plugins/debuggercommon/mibreakpointcontroller.cpp:324–348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

322}
323
324void 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.
351void MIBreakpointController::debuggerStateChanged(IDebugSession::DebuggerState state)

Callers

nothing calls this directly

Calls 3

debuggerStateIsOnMethod · 0.80
addCommandMethod · 0.60
atMethod · 0.45

Tested by

no test coverage detected