DebuggerEngine: Goto Location

Check for OperateByInstructionCapability before using the
disassembler agent.

Change-Id: I35f69f8df5da41eee22b2a94fe2d33c67b4d7f92
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
Aurindam Jana
2012-04-16 09:47:50 +02:00
committed by hjk
parent 2a2a89ab01
commit bf4d9aed33

View File

@@ -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;
}