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