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

DebuggerEngine: Goto Location



Check for OperateByInstructionCapability before using the
disassembler agent.

Change-Id: I35f69f8df5da41eee22b2a94fe2d33c67b4d7f92
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 2a2a89ab
......@@ -615,7 +615,8 @@ void DebuggerEngine::gotoLocation(const Location &loc)
{
d->resetLocation();
if (debuggerCore()->boolSetting(OperateByInstruction) || !loc.hasDebugInfo()) {
if ((hasCapability(OperateByInstructionCapability) &&
debuggerCore()->boolSetting(OperateByInstruction)) || !loc.hasDebugInfo()) {
d->m_disassemblerAgent.setLocation(loc);
return;
}
......
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