forked from qt-creator/qt-creator
Debugger: Re-work breakpoint storage handling
The actual data is now in a TreeModel. As interface to individual breakpoints there's a new Breakpoint class essentially providing a checked handle. On the user code side breakHandler()->foo(bpId) is replaced by bp.foo(). Change-Id: I82f435bad6301fce85a1d82bf6bf39e9ddba511e Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
@@ -148,10 +148,9 @@ void DebuggerRunControl::start()
|
||||
|
||||
if (m_engine->startParameters().startMode == StartInternal) {
|
||||
QStringList unhandledIds;
|
||||
foreach (const BreakpointModelId &id, breakHandler()->allBreakpointIds()) {
|
||||
if (m_engine->breakHandler()->breakpointData(id).enabled
|
||||
&& !m_engine->acceptsBreakpoint(id))
|
||||
unhandledIds.append(id.toString());
|
||||
foreach (Breakpoint bp, breakHandler()->allBreakpoints()) {
|
||||
if (bp.isEnabled() && !m_engine->acceptsBreakpoint(bp))
|
||||
unhandledIds.append(bp.id().toString());
|
||||
}
|
||||
if (!unhandledIds.isEmpty()) {
|
||||
QString warningMessage =
|
||||
|
Reference in New Issue
Block a user