forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user