forked from qt-creator/qt-creator
Debugger: Use Utils::FilePath for serverStartScript
Change-Id: Ia3c6263a8f020b90c6f623a6cf88169db8fc2865 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -400,11 +400,11 @@ void DebuggerRunTool::setCommandsForReset(const QString &commands)
|
||||
m_runParameters.commandsForReset = commands;
|
||||
}
|
||||
|
||||
void DebuggerRunTool::setServerStartScript(const QString &serverStartScript)
|
||||
void DebuggerRunTool::setServerStartScript(const FilePath &serverStartScript)
|
||||
{
|
||||
if (!serverStartScript.isEmpty()) {
|
||||
// Provide script information about the environment
|
||||
CommandLine serverStarter(FileName::fromString(serverStartScript), {});
|
||||
CommandLine serverStarter(serverStartScript, {});
|
||||
serverStarter.addArgs({m_runParameters.inferior.executable, m_runParameters.remoteChannel});
|
||||
addStartDependency(new LocalProcessRunner(this, serverStarter));
|
||||
}
|
||||
|
Reference in New Issue
Block a user