diff --git a/src/plugins/debugger/debuggerruncontrol.cpp b/src/plugins/debugger/debuggerruncontrol.cpp index d228a7d4bc3..8b6ac29c995 100644 --- a/src/plugins/debugger/debuggerruncontrol.cpp +++ b/src/plugins/debugger/debuggerruncontrol.cpp @@ -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