Debugger: Reset Location Mark

Call resetLocation() before setLocation().

Change-Id: I633d513ddc9a5a1683e81f7cabf127e79885ad4e
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
Aurindam Jana
2011-12-28 13:20:27 +01:00
committed by hjk
parent 1571b7f977
commit 720eb1df9e

View File

@@ -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();