Skip to content

Commit

Permalink
Debugger: Fix running on RemoteLinux
Browse files Browse the repository at this point in the history
This (temporarily) works around the start up regression due
to wrong order of merged patches.

Change-Id: I7a386fb06175363aa23862716687764b930c52d8
Reviewed-by: Christian Kandeler <[email protected]>
  • Loading branch information
hjk committed Apr 21, 2017
1 parent 86ea365 commit dfb825e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/plugins/debugger/debuggerruncontrol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,8 @@ DebuggerRunTool::DebuggerRunTool(RunControl *runControl, const DebuggerRunParame
}
}

qobject_cast<DebuggerRunControl *>(runControl)->m_engine = m_engine;

connect(runControl, &RunControl::finished,
this, &DebuggerRunTool::handleFinished);
connect(m_engine, &DebuggerEngine::requestRemoteSetup,
Expand Down Expand Up @@ -583,7 +585,8 @@ void DebuggerRunTool::showMessage(const QString &msg, int channel, int timeout)
DebuggerEngine *engine(const DebuggerRunControl *runControl)
{
QTC_ASSERT(runControl, return nullptr);
return qobject_cast<DebuggerRunTool *>(runControl->toolRunner())->engine();
//return qobject_cast<DebuggerRunTool *>(runControl->toolRunner())->engine();
return runControl->m_engine;
}


Expand Down
5 changes: 5 additions & 0 deletions src/plugins/debugger/debuggerruncontrol.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ class RemoteSetupResult;
class DebuggerStartParameters;
class DebuggerRunControl;

namespace Internal { class DebuggerEngine; }

DEBUGGER_EXPORT DebuggerRunControl *createDebuggerRunControl(const DebuggerStartParameters &sp,
ProjectExplorer::RunConfiguration *runConfig,
QString *errorMessage,
Expand Down Expand Up @@ -70,6 +72,9 @@ class DEBUGGER_EXPORT DebuggerRunControl : public ProjectExplorer::RunControl
void requestRemoteSetup();
void aboutToNotifyInferiorSetupOk();
void stateChanged(Debugger::DebuggerState state);

public:
Internal::DebuggerEngine *m_engine = nullptr; // FIXME: Remove.
};

} // namespace Debugger

0 comments on commit dfb825e

Please sign in to comment.