forked from qt-creator/qt-creator
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:
@@ -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)
|
||||
|
@@ -93,6 +93,7 @@ private:
|
||||
friend class BreakHandler;
|
||||
friend class BreakpointManager;
|
||||
friend class BreakpointMarker;
|
||||
friend class DebuggerEngine;
|
||||
|
||||
void updateMarker();
|
||||
void updateMarkerIcon();
|
||||
|
Reference in New Issue
Block a user