Commit 828b1f96 authored by hjk's avatar hjk
Browse files

debugger: better updating of the stack and debugger view location marker

parent 59739162
...@@ -201,13 +201,17 @@ DisassemblerViewAgent::~DisassemblerViewAgent() ...@@ -201,13 +201,17 @@ DisassemblerViewAgent::~DisassemblerViewAgent()
void DisassemblerViewAgent::cleanup() void DisassemblerViewAgent::cleanup()
{ {
d->cache.clear(); d->cache.clear();
if (d->editor)
d->editor->markableInterface()->removeMark(d->locationMark);
//if (d->editor) //if (d->editor)
// d->editor->deleteLater(); // d->editor->deleteLater();
//d->editor = 0; //d->editor = 0;
} }
void DisassemblerViewAgent::resetLocation()
{
if (d->editor)
d->editor->markableInterface()->removeMark(d->locationMark);
}
void DisassemblerViewAgent::setFrame(const StackFrame &frame) void DisassemblerViewAgent::setFrame(const StackFrame &frame)
{ {
d->frame = frame; d->frame = frame;
......
...@@ -83,6 +83,7 @@ public: ...@@ -83,6 +83,7 @@ public:
~DisassemblerViewAgent(); ~DisassemblerViewAgent();
void setFrame(const StackFrame &frame); void setFrame(const StackFrame &frame);
void resetLocation();
Q_SLOT void setContents(const QString &contents); Q_SLOT void setContents(const QString &contents);
QString address() const; QString address() const;
void cleanup(); void cleanup();
......
...@@ -1348,6 +1348,8 @@ void DebuggerManager::jumpToLineExec() ...@@ -1348,6 +1348,8 @@ void DebuggerManager::jumpToLineExec()
void DebuggerManager::resetLocation() void DebuggerManager::resetLocation()
{ {
d->m_disassemblerViewAgent.resetLocation();
d->m_stackHandler->setCurrentIndex(-1);
// Connected to the plugin. // Connected to the plugin.
emit resetLocationRequested(); emit resetLocationRequested();
} }
......
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