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:
@@ -79,6 +79,9 @@ public:
|
|||||||
|
|
||||||
virtual bool setToolTipExpression(TextEditor::TextEditorWidget *editorWidget,
|
virtual bool setToolTipExpression(TextEditor::TextEditorWidget *editorWidget,
|
||||||
const DebuggerToolTipContext &context);
|
const DebuggerToolTipContext &context);
|
||||||
|
|
||||||
|
virtual DebuggerEngine *cppEngine() { return this; }
|
||||||
|
|
||||||
virtual void setupEngine();
|
virtual void setupEngine();
|
||||||
virtual void setupInferior();
|
virtual void setupInferior();
|
||||||
virtual void runEngine();
|
virtual void runEngine();
|
||||||
|
@@ -256,6 +256,7 @@ public:
|
|||||||
bool isSlaveEngine() const;
|
bool isSlaveEngine() const;
|
||||||
bool isMasterEngine() const;
|
bool isMasterEngine() const;
|
||||||
DebuggerEngine *masterEngine() const;
|
DebuggerEngine *masterEngine() const;
|
||||||
|
virtual DebuggerEngine *cppEngine() { return 0; }
|
||||||
|
|
||||||
virtual bool canDisplayTooltip() const { return state() == InferiorStopOk; }
|
virtual bool canDisplayTooltip() const { return state() == InferiorStopOk; }
|
||||||
|
|
||||||
|
@@ -943,10 +943,12 @@ public slots:
|
|||||||
void handleOperateByInstructionTriggered(bool operateByInstructionTriggered)
|
void handleOperateByInstructionTriggered(bool operateByInstructionTriggered)
|
||||||
{
|
{
|
||||||
// Go to source only if we have the file.
|
// Go to source only if we have the file.
|
||||||
if (currentEngine()->stackHandler()->currentIndex() >= 0) {
|
if (DebuggerEngine *cppEngine = currentEngine()->cppEngine()) {
|
||||||
const StackFrame frame = currentEngine()->stackHandler()->currentFrame();
|
if (cppEngine->stackHandler()->currentIndex() >= 0) {
|
||||||
|
const StackFrame frame = cppEngine->stackHandler()->currentFrame();
|
||||||
if (operateByInstructionTriggered || frame.isUsable())
|
if (operateByInstructionTriggered || frame.isUsable())
|
||||||
currentEngine()->gotoLocation(Location(frame, true));
|
cppEngine->gotoLocation(Location(frame, true));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -72,6 +72,7 @@ public:
|
|||||||
~GdbEngine();
|
~GdbEngine();
|
||||||
|
|
||||||
private: ////////// General Interface //////////
|
private: ////////// General Interface //////////
|
||||||
|
virtual DebuggerEngine *cppEngine() { return this; }
|
||||||
|
|
||||||
virtual void setupEngine() = 0;
|
virtual void setupEngine() = 0;
|
||||||
virtual void handleGdbStartFailed();
|
virtual void handleGdbStartFailed();
|
||||||
|
@@ -68,6 +68,8 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
// DebuggerEngine implementation
|
// DebuggerEngine implementation
|
||||||
|
DebuggerEngine *cppEngine() { return this; }
|
||||||
|
|
||||||
void executeStep();
|
void executeStep();
|
||||||
void executeStepOut();
|
void executeStepOut();
|
||||||
void executeNext();
|
void executeNext();
|
||||||
|
@@ -773,11 +773,6 @@ void QmlCppEngine::debugLastCommand()
|
|||||||
m_cppEngine->debugLastCommand();
|
m_cppEngine->debugLastCommand();
|
||||||
}
|
}
|
||||||
|
|
||||||
DebuggerEngine *QmlCppEngine::cppEngine() const
|
|
||||||
{
|
|
||||||
return m_cppEngine;
|
|
||||||
}
|
|
||||||
|
|
||||||
DebuggerEngine *QmlCppEngine::qmlEngine() const
|
DebuggerEngine *QmlCppEngine::qmlEngine() const
|
||||||
{
|
{
|
||||||
return m_qmlEngine;
|
return m_qmlEngine;
|
||||||
|
@@ -84,7 +84,7 @@ public:
|
|||||||
void assignValueInDebugger(const WatchData *data,
|
void assignValueInDebugger(const WatchData *data,
|
||||||
const QString &expr, const QVariant &value);
|
const QString &expr, const QVariant &value);
|
||||||
|
|
||||||
DebuggerEngine *cppEngine() const;
|
DebuggerEngine *cppEngine() { return m_cppEngine; }
|
||||||
DebuggerEngine *qmlEngine() const;
|
DebuggerEngine *qmlEngine() const;
|
||||||
|
|
||||||
void notifyEngineRemoteSetupFinished(const RemoteSetupResult &result);
|
void notifyEngineRemoteSetupFinished(const RemoteSetupResult &result);
|
||||||
|
Reference in New Issue
Block a user