Debugger: Handle failed breakpoints as unclaimed

Change-Id: I02a44db5391b174e75fc326ce217b271ee73c464
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2020-04-22 14:34:31 +02:00
parent 91536ae781
commit 4ba131bdd6
2 changed files with 6 additions and 0 deletions

View File

@@ -1330,7 +1330,12 @@ void DebuggerEngine::notifyBreakpointInsertOk(const Breakpoint &bp)
void DebuggerEngine::notifyBreakpointInsertFailed(const Breakpoint &bp)
{
QTC_ASSERT(bp, return);
GlobalBreakpoint gbp = bp->globalBreakpoint();
bp->gotoState(BreakpointDead, BreakpointInsertionProceeding);
breakHandler()->removeDisassemblerMarker(bp);
breakHandler()->destroyItem(bp);
QTC_ASSERT(gbp, return);
gbp->updateMarker();
}
void DebuggerEngine::notifyBreakpointRemoveProceeding(const Breakpoint &bp)

View File

@@ -93,6 +93,7 @@ private:
friend class BreakHandler;
friend class BreakpointManager;
friend class BreakpointMarker;
friend class DebuggerEngine;
void updateMarker();
void updateMarkerIcon();