forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user