Debugger: Simplify paramenter setup on Windows

Change-Id: Iec44dd33287ac23d2b51ef32483eae831d2ce4bd
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
hjk
2023-02-07 14:25:47 +01:00
parent cbf2b23787
commit 89880907f2

View File

@@ -786,11 +786,11 @@ bool DebuggerRunTool::fixupParameters()
}
if (HostOsInfo::isWindowsHost()) {
// Otherwise command lines with '> tmp.log' hang.
ProcessArgs::SplitError perr;
rp.inferior.command.setArguments(
ProcessArgs::prepareArgs(rp.inferior.command.arguments(), &perr,
HostOsInfo::hostOs(), nullptr,
&rp.inferior.workingDirectory).toWindowsArgs());
ProcessArgs::prepareArgs(rp.inferior.command.arguments(), &perr,
HostOsInfo::hostOs(), nullptr,
&rp.inferior.workingDirectory).toWindowsArgs();
if (perr != ProcessArgs::SplitOk) {
// perr == BadQuoting is never returned on Windows
// FIXME? QTCREATORBUG-2809