forked from qt-creator/qt-creator
Debugger: Reset Location Mark
Call resetLocation() before setLocation(). Change-Id: I633d513ddc9a5a1683e81f7cabf127e79885ad4e Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -567,6 +567,8 @@ void DebuggerEngine::resetLocation()
|
||||
|
||||
void DebuggerEngine::gotoLocation(const Location &loc)
|
||||
{
|
||||
d->resetLocation();
|
||||
|
||||
if (debuggerCore()->boolSetting(OperateByInstruction) || !loc.hasDebugInfo()) {
|
||||
d->m_disassemblerAgent.setLocation(loc);
|
||||
return;
|
||||
@@ -575,7 +577,6 @@ void DebuggerEngine::gotoLocation(const Location &loc)
|
||||
//if (m_shuttingDown)
|
||||
// return;
|
||||
|
||||
d->resetLocation();
|
||||
|
||||
const QString file = loc.fileName();
|
||||
const int line = loc.lineNumber();
|
||||
|
||||
Reference in New Issue
Block a user