debugger: add a few permitted breakpoint state transitions

This commit is contained in:
hjk
2010-11-16 16:10:55 +01:00
parent fd8bf48b2b
commit cb4e680424

View File

@@ -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;
}