forked from qt-creator/qt-creator
QmlDebugging: Fix breakpoint states
For mixed debugging, the ownership of breakpoints is with the mixed engine so that it can set the state of the breakpoints correctly on DebuggerFinished. Change-Id: I0e03493ac997dbca0a34ca65de1eba3690faceba Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
This commit is contained in:
committed by
Kai Koehne
parent
9ebec701c5
commit
41cbb6cdee
@@ -861,13 +861,14 @@ void QmlEngine::attemptBreakpointSynchronization()
|
||||
|
||||
BreakHandler *handler = breakHandler();
|
||||
|
||||
DebuggerEngine *bpOwner = isSlaveEngine() ? masterEngine() : this;
|
||||
foreach (BreakpointModelId id, handler->unclaimedBreakpointIds()) {
|
||||
// Take ownership of the breakpoint. Requests insertion.
|
||||
if (acceptsBreakpoint(id))
|
||||
handler->setEngine(id, this);
|
||||
handler->setEngine(id, bpOwner);
|
||||
}
|
||||
|
||||
foreach (BreakpointModelId id, handler->engineBreakpointIds(this)) {
|
||||
foreach (BreakpointModelId id, handler->engineBreakpointIds(bpOwner)) {
|
||||
switch (handler->state(id)) {
|
||||
case BreakpointNew:
|
||||
// Should not happen once claimed.
|
||||
|
||||
Reference in New Issue
Block a user