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