forked from qt-creator/qt-creator
debugger: Refactor breakpoint handling.
The breakpoints are now (fairly) tightly guarded by the BreakpointHandler. Engines and Views are only supposed to refer to them by id. They also have individual states now. The breakpoint data is split into a "user requested" "fixed" part in BreakpointData and the engines' acknowledged data in a new struct BreakpointResponse. TODO: Move m_state and m_engine members to BreakpointResponse. Fix regressions in the marker handling.
This commit is contained in:
@@ -238,10 +238,10 @@ void QmlCppEngine::attemptBreakpointSynchronization()
|
||||
static_cast<DebuggerEngine*>(d->m_qmlEngine)->attemptBreakpointSynchronization();
|
||||
}
|
||||
|
||||
bool QmlCppEngine::acceptsBreakpoint(const Internal::BreakpointData *br)
|
||||
bool QmlCppEngine::acceptsBreakpoint(BreakpointId id)
|
||||
{
|
||||
return d->m_cppEngine->acceptsBreakpoint(br)
|
||||
|| d->m_qmlEngine->acceptsBreakpoint(br);
|
||||
return d->m_cppEngine->acceptsBreakpoint(id)
|
||||
|| d->m_qmlEngine->acceptsBreakpoint(id);
|
||||
}
|
||||
|
||||
void QmlCppEngine::selectThread(int index)
|
||||
|
||||
Reference in New Issue
Block a user