Debugger: Remove DebuggerRunControl

Use plain RunControl + DebuggerRunTool combo instead.

Change-Id: Ib71b5eab50da667b9d71dcc6689d2643ad8ecdee
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2017-04-27 09:53:07 +02:00
parent 6e2756244d
commit 6e990f96c6
27 changed files with 136 additions and 229 deletions

View File

@@ -35,13 +35,6 @@ namespace Debugger {
class RemoteSetupResult;
class DebuggerStartParameters;
class DebuggerRunControl;
DEBUGGER_EXPORT ProjectExplorer::RunControl *
createDebuggerRunControl(const DebuggerStartParameters &sp,
ProjectExplorer::RunConfiguration *runConfig,
QString *errorMessage,
Core::Id runMode = ProjectExplorer::Constants::DEBUG_RUN_MODE);
class DEBUGGER_EXPORT DebuggerRunTool : public ProjectExplorer::ToolRunner
{
@@ -57,12 +50,11 @@ public:
~DebuggerRunTool();
Internal::DebuggerEngine *engine() const { return m_engine; }
DebuggerRunControl *runControl() const;
void showMessage(const QString &msg, int channel = LogDebug, int timeout = -1);
void startIt();
void stopIt();
void start() override;
void stop() override;
void handleFinished();
@@ -87,21 +79,4 @@ private:
QStringList m_errors;
};
class DEBUGGER_EXPORT DebuggerRunControl : public ProjectExplorer::RunControl
{
Q_OBJECT
public:
DebuggerRunControl(ProjectExplorer::RunConfiguration *runConfig, Core::Id runMode);
~DebuggerRunControl() override;
void start() override;
void stop() override; // Called from SnapshotWindow.
DebuggerRunTool *toolRunner() const;
public:
DebuggerRunTool *m_debuggerTool = nullptr;
};
} // namespace Debugger