forked from qt-creator/qt-creator
Debugger: Remove serverStartScript run parameter
Instead, create the resulting RunWorker as dependency directly. Change-Id: Id15005bb5707bb97dfc61cc2f84409e759e60f9f Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -433,9 +433,9 @@ void StartApplicationDialog::run(bool attachRemote)
|
||||
debugger->setRemoteChannel(dev->sshParameters().host, newParameters.serverPort);
|
||||
debugger->setRunControlName(newParameters.displayName());
|
||||
debugger->setBreakOnMain(newParameters.breakAtMain);
|
||||
debugger->setServerStartScript(newParameters.serverStartScript);
|
||||
debugger->setDebugInfoLocation(newParameters.debugInfoLocation);
|
||||
debugger->setInferior(inferior);
|
||||
debugger->setServerStartScript(newParameters.serverStartScript); // Note: This requires inferior.
|
||||
debugger->setNeedFixup(false);
|
||||
|
||||
bool isLocal = !dev || (dev->type() == ProjectExplorer::Constants::DESKTOP_DEVICE_TYPE);
|
||||
|
@@ -108,7 +108,6 @@ QDebug operator<<(QDebug str, const DebuggerRunParameters &sp)
|
||||
<< " attachPID=" << sp.attachPID.pid()
|
||||
<< " useTerminal=" << sp.useTerminal
|
||||
<< " remoteChannel=" << sp.remoteChannel
|
||||
<< " serverStartScript=" << sp.serverStartScript
|
||||
<< " abi=" << sp.toolChainAbi.toString() << '\n';
|
||||
return str;
|
||||
}
|
||||
|
@@ -141,7 +141,6 @@ public:
|
||||
QString startMessage; // First status message shown.
|
||||
QString debugInfoLocation; // Gdb "set-debug-file-directory".
|
||||
QStringList debugSourceLocation; // Gdb "directory"
|
||||
QString serverStartScript;
|
||||
bool isSnapshot = false; // Set if created internally.
|
||||
ProjectExplorer::Abi toolChainAbi;
|
||||
|
||||
|
@@ -279,7 +279,14 @@ void DebuggerRunTool::setCommandsForReset(const QString &commands)
|
||||
|
||||
void DebuggerRunTool::setServerStartScript(const QString &serverStartScript)
|
||||
{
|
||||
m_runParameters.serverStartScript = serverStartScript;
|
||||
if (!serverStartScript.isEmpty()) {
|
||||
// Provide script information about the environment
|
||||
StandardRunnable serverStarter;
|
||||
serverStarter.executable = serverStartScript;
|
||||
QtcProcess::addArg(&serverStarter.commandLineArguments, m_runParameters.inferior.executable);
|
||||
QtcProcess::addArg(&serverStarter.commandLineArguments, m_runParameters.remoteChannel);
|
||||
addStartDependency(new LocalProcessRunner(runControl(), serverStarter));
|
||||
}
|
||||
}
|
||||
|
||||
void DebuggerRunTool::setDebugInfoLocation(const QString &debugInfoLocation)
|
||||
@@ -852,14 +859,6 @@ void DebuggerRunTool::setRunParameters(const DebuggerRunParameters &rp)
|
||||
{
|
||||
m_runParameters = rp;
|
||||
|
||||
if (!rp.serverStartScript.isEmpty()) {
|
||||
// Provide script information about the environment
|
||||
StandardRunnable serverStarter;
|
||||
serverStarter.executable = rp.serverStartScript;
|
||||
QtcProcess::addArg(&serverStarter.commandLineArguments, rp.inferior.executable);
|
||||
QtcProcess::addArg(&serverStarter.commandLineArguments, rp.remoteChannel);
|
||||
addStartDependency(new LocalProcessRunner(runControl(), serverStarter));
|
||||
}
|
||||
}
|
||||
|
||||
DebuggerEngine *DebuggerRunTool::activeEngine() const
|
||||
|
Reference in New Issue
Block a user