Commit a373698b authored by hjk's avatar hjk

Debugger: Remove breakpoint mark from assembler view

... after deletion. The breakpoint itself was actually removed from
the breakpoint view but the red blob stayed until the next update
(e.g. after the next 'step')

Change-Id: I120059a6e643df7c104a8f6d96e09b9c707d14d8
Reviewed-by: default avatarNiels Weber <niels.weber@theqtcompany.com>
parent ffd3cecc
......@@ -1331,6 +1331,8 @@ BreakpointItem::~BreakpointItem()
void BreakpointItem::destroyMarker()
{
if (m_engine)
m_engine->updateBreakpointMarkers();
if (m_marker) {
BreakpointMarker *m = m_marker;
m->m_bp = 0;
......
......@@ -1336,6 +1336,11 @@ QString DebuggerEngine::toFileInProject(const QUrl &fileUrl)
return d->m_fileFinder.findFile(fileUrl);
}
void DebuggerEngine::updateBreakpointMarkers()
{
d->m_disassemblerAgent.updateBreakpointMarkers();
}
bool DebuggerEngine::debuggerActionsEnabled() const
{
return debuggerActionsEnabled(d->m_state);
......
......@@ -313,6 +313,7 @@ public:
virtual void notifyInferiorIll();
QString toFileInProject(const QUrl &fileUrl);
void updateBreakpointMarkers();
signals:
void stateChanged(Debugger::DebuggerState state);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment