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:
@@ -30,8 +30,10 @@
|
||||
|
||||
#include "qmlcppengine.h"
|
||||
#include "qmlengine.h"
|
||||
|
||||
#include <debugger/debuggerruncontrol.h>
|
||||
#include <debugger/debuggerstartparameters.h>
|
||||
#include <debugger/breakhandler.h>
|
||||
#include <debugger/stackhandler.h>
|
||||
#include <debugger/watchhandler.h>
|
||||
|
||||
@@ -244,10 +246,10 @@ void QmlCppEngine::attemptBreakpointSynchronization()
|
||||
}
|
||||
}
|
||||
|
||||
bool QmlCppEngine::acceptsBreakpoint(BreakpointModelId id) const
|
||||
bool QmlCppEngine::acceptsBreakpoint(Breakpoint bp) const
|
||||
{
|
||||
return m_cppEngine->acceptsBreakpoint(id)
|
||||
|| m_qmlEngine->acceptsBreakpoint(id);
|
||||
return m_cppEngine->acceptsBreakpoint(bp)
|
||||
|| m_qmlEngine->acceptsBreakpoint(bp);
|
||||
}
|
||||
|
||||
void QmlCppEngine::selectThread(ThreadId threadId)
|
||||
|
||||
Reference in New Issue
Block a user