LLDB: Quote environment variable assignment.

Change-Id: Ie93d251ba120fd33ab3ab12e243ff1e1818ba46b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
David Schulz
2016-05-11 13:18:23 +02:00
parent 3d751dcf44
commit 595cc6e310

View File

@@ -298,7 +298,7 @@ void LldbEngine::setupInferior()
if (item.unset)
cmd.arg("command", "settings remove target.env-vars " + item.name.toUtf8());
else
cmd.arg("command", "settings set target.env-vars " + item.name.toUtf8() + '=' + item.value.toUtf8());
cmd.arg("command", "settings set target.env-vars '" + item.name.toUtf8() + '=' + item.value.toUtf8() + '\'');
runCommand(cmd);
}