forked from qt-creator/qt-creator
Debugger: Simplify paramenter setup on Windows
Change-Id: Iec44dd33287ac23d2b51ef32483eae831d2ce4bd Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -786,11 +786,11 @@ bool DebuggerRunTool::fixupParameters()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (HostOsInfo::isWindowsHost()) {
|
if (HostOsInfo::isWindowsHost()) {
|
||||||
|
// Otherwise command lines with '> tmp.log' hang.
|
||||||
ProcessArgs::SplitError perr;
|
ProcessArgs::SplitError perr;
|
||||||
rp.inferior.command.setArguments(
|
|
||||||
ProcessArgs::prepareArgs(rp.inferior.command.arguments(), &perr,
|
ProcessArgs::prepareArgs(rp.inferior.command.arguments(), &perr,
|
||||||
HostOsInfo::hostOs(), nullptr,
|
HostOsInfo::hostOs(), nullptr,
|
||||||
&rp.inferior.workingDirectory).toWindowsArgs());
|
&rp.inferior.workingDirectory).toWindowsArgs();
|
||||||
if (perr != ProcessArgs::SplitOk) {
|
if (perr != ProcessArgs::SplitOk) {
|
||||||
// perr == BadQuoting is never returned on Windows
|
// perr == BadQuoting is never returned on Windows
|
||||||
// FIXME? QTCREATORBUG-2809
|
// FIXME? QTCREATORBUG-2809
|
||||||
|
Reference in New Issue
Block a user