forked from qt-creator/qt-creator
overhaul process argument handling
get away from argument stringlists. instead, use native shell command lines which support quoting/splitting, environment variable expansion and redirections with well-understood semantics. Task-number: QTCREATORBUG-542 Task-number: QTCREATORBUG-1564
This commit is contained in:
@@ -2047,10 +2047,9 @@ void DebuggerPluginPrivate::startExternalApplication()
|
||||
sp.workingDirectory = dlg.workingDirectory();
|
||||
sp.breakAtMain = dlg.breakAtMain();
|
||||
if (!dlg.executableArguments().isEmpty())
|
||||
sp.processArgs = dlg.executableArguments().split(QLatin1Char(' '));
|
||||
sp.processArgs = dlg.executableArguments();
|
||||
// Fixme: 1 of 3 testing hacks.
|
||||
if (!sp.processArgs.isEmpty()
|
||||
&& (sp.processArgs.front() == _("@tcf@") || sp.processArgs.front() == _("@sym@")))
|
||||
if (sp.processArgs.startsWith(__("@tcf@ ")) || sp.processArgs.startsWith(__("@sym@ ")))
|
||||
sp.toolChainType = ProjectExplorer::ToolChain_RVCT_ARMV5;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user