Debugger: Don't show a location marker in the mixed master engine

Task-number: QTCREATORBUG-14087
Change-Id: I7e8f116c97cdea0bd8234d060d068435229e6fc2
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
hjk
2015-03-04 17:43:59 +01:00
parent 54da18eaaa
commit e79808a8f7
7 changed files with 14 additions and 10 deletions

View File

@@ -943,10 +943,12 @@ public slots:
void handleOperateByInstructionTriggered(bool operateByInstructionTriggered)
{
// Go to source only if we have the file.
if (currentEngine()->stackHandler()->currentIndex() >= 0) {
const StackFrame frame = currentEngine()->stackHandler()->currentFrame();
if (operateByInstructionTriggered || frame.isUsable())
currentEngine()->gotoLocation(Location(frame, true));
if (DebuggerEngine *cppEngine = currentEngine()->cppEngine()) {
if (cppEngine->stackHandler()->currentIndex() >= 0) {
const StackFrame frame = cppEngine->stackHandler()->currentFrame();
if (operateByInstructionTriggered || frame.isUsable())
cppEngine->gotoLocation(Location(frame, true));
}
}
}