Commit 720eb1df authored by Aurindam Jana's avatar Aurindam Jana Committed by hjk
Browse files

Debugger: Reset Location Mark



Call resetLocation() before setLocation().

Change-Id: I633d513ddc9a5a1683e81f7cabf127e79885ad4e
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 1571b7f9
......@@ -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();
......
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