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:
Aurindam Jana
2012-03-02 12:24:19 +01:00
committed by Kai Koehne
parent 9ebec701c5
commit 41cbb6cdee

View File

@@ -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.