forked from qt-creator/qt-creator
debugger: better updating of the stack and debugger view location marker
This commit is contained in:
@@ -201,13 +201,17 @@ DisassemblerViewAgent::~DisassemblerViewAgent()
|
||||
void DisassemblerViewAgent::cleanup()
|
||||
{
|
||||
d->cache.clear();
|
||||
if (d->editor)
|
||||
d->editor->markableInterface()->removeMark(d->locationMark);
|
||||
//if (d->editor)
|
||||
// d->editor->deleteLater();
|
||||
//d->editor = 0;
|
||||
}
|
||||
|
||||
void DisassemblerViewAgent::resetLocation()
|
||||
{
|
||||
if (d->editor)
|
||||
d->editor->markableInterface()->removeMark(d->locationMark);
|
||||
}
|
||||
|
||||
void DisassemblerViewAgent::setFrame(const StackFrame &frame)
|
||||
{
|
||||
d->frame = frame;
|
||||
|
||||
@@ -83,6 +83,7 @@ public:
|
||||
~DisassemblerViewAgent();
|
||||
|
||||
void setFrame(const StackFrame &frame);
|
||||
void resetLocation();
|
||||
Q_SLOT void setContents(const QString &contents);
|
||||
QString address() const;
|
||||
void cleanup();
|
||||
|
||||
@@ -1348,6 +1348,8 @@ void DebuggerManager::jumpToLineExec()
|
||||
|
||||
void DebuggerManager::resetLocation()
|
||||
{
|
||||
d->m_disassemblerViewAgent.resetLocation();
|
||||
d->m_stackHandler->setCurrentIndex(-1);
|
||||
// Connected to the plugin.
|
||||
emit resetLocationRequested();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user