debugger: better breakpoint state handling

Removal of a breakpoint while the insertion result was pending worked,
but created a lot of noise about unexpected state transitions.

Change-Id: I6c101ee9d184efb1c44f72cbff99b0481f64b0eb
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
hjk
2011-10-28 12:26:00 +02:00
committed by hjk
parent 587e2b5a48
commit e4f289954e
2 changed files with 30 additions and 9 deletions

View File

@@ -1017,6 +1017,8 @@ void BreakHandler::removeBreakpoint(BreakpointModelId id)
Iterator it = m_storage.find(id);
BREAK_ASSERT(it != m_storage.end(), return);
switch (it->state) {
case BreakpointRemoveRequested:
break;
case BreakpointInserted:
case BreakpointInsertProceeding:
setState(id, BreakpointRemoveRequested);