aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/debuggerengine.cpp
diff options
context:
space:
mode:
authorAurindam Jana <[email protected]>2012-04-16 09:47:50 +0200
committerhjk <[email protected]>2012-04-16 09:52:02 +0200
commitbf4d9aed33f0b49cf8f6d4d5edd1915d70f326c3 (patch)
tree45f1f237482381f90d1ea1362674de5a2bb9a70c /src/plugins/debugger/debuggerengine.cpp
parent2a2a89ab01092de6d63e7b47abfff51480675b58 (diff)
DebuggerEngine: Goto Location
Check for OperateByInstructionCapability before using the disassembler agent. Change-Id: I35f69f8df5da41eee22b2a94fe2d33c67b4d7f92 Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/plugins/debugger/debuggerengine.cpp')
-rw-r--r--src/plugins/debugger/debuggerengine.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/debugger/debuggerengine.cpp b/src/plugins/debugger/debuggerengine.cpp
index 23ac6b7b1d5..f0c0eb549d3 100644
--- a/src/plugins/debugger/debuggerengine.cpp
+++ b/src/plugins/debugger/debuggerengine.cpp
@@ -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;
}