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

Method breakpointAdded

plugins/debuggercommon/mibreakpointcontroller.cpp:274–293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272}
273
274void MIBreakpointController::breakpointAdded(int row)
275{
276 if (m_ignoreChanges > 0)
277 return;
278
279 auto breakpoint = BreakpointDataPtr::create();
280 m_breakpoints.insert(row, breakpoint);
281
282 const Breakpoint* modelBreakpoint = breakpointModel()->breakpoint(row);
283 if (!modelBreakpoint->enabled())
284 breakpoint->dirty |= BreakpointModel::EnableColumnFlag;
285 if (!modelBreakpoint->condition().isEmpty())
286 breakpoint->dirty |= BreakpointModel::ConditionColumnFlag;
287 if (modelBreakpoint->ignoreHits() != 0)
288 breakpoint->dirty |= BreakpointModel::IgnoreHitsColumnFlag;
289 if (!modelBreakpoint->address().isEmpty())
290 breakpoint->dirty |= BreakpointModel::LocationColumnFlag;
291
292 createBreakpoint(row);
293}
294
295void MIBreakpointController::breakpointModelChanged(int row, BreakpointModel::ColumnFlags columns)
296{

Callers

nothing calls this directly

Calls 9

createFunction · 0.85
breakpointModelFunction · 0.85
breakpointMethod · 0.80
enabledMethod · 0.80
conditionMethod · 0.80
ignoreHitsMethod · 0.80
insertMethod · 0.45
isEmptyMethod · 0.45
addressMethod · 0.45

Tested by

no test coverage detected