Commit cb4e6804 authored by hjk's avatar hjk
Browse files

debugger: add a few permitted breakpoint state transitions

parent fd8bf48b
......@@ -578,13 +578,15 @@ static bool isAllowedTransition(BreakpointState from, BreakpointState to)
|| to == BreakpointPending
|| to == BreakpointDead;
case BreakpointPending:
return false;
return to == BreakpointChangeRequested
|| to == BreakpointRemoveRequested;
case BreakpointInserted:
return false;
return to == BreakpointChangeRequested
|| to == BreakpointRemoveRequested;
case BreakpointRemoveRequested:
return false;
return to == BreakpointRemoveProceeding;
case BreakpointRemoveProceeding:
return false;
return to == BreakpointDead;
case BreakpointDead:
return false;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment