summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/OptionValueFileSpec.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2013-03-15 01:39:44 +0000
committerSean Callanan <scallanan@apple.com>2013-03-15 01:39:44 +0000
commitcb7733c33c8bd2c24f43967447f6e739fb768c7b (patch)
tree76adc7defaaf57ed8daf0b6c78f8df404f84c899 /lldb/source/Interpreter/OptionValueFileSpec.cpp
parente9c43ffb2ac0893d46cb93c468290f2a3309e573 (diff)
downloadbcm5719-llvm-cb7733c33c8bd2c24f43967447f6e739fb768c7b.tar.gz
bcm5719-llvm-cb7733c33c8bd2c24f43967447f6e739fb768c7b.zip
Rolled back r176719 because settings with file
names were broken. <rdar://problem/13422580> llvm-svn: 177139
Diffstat (limited to 'lldb/source/Interpreter/OptionValueFileSpec.cpp')
-rw-r--r--lldb/source/Interpreter/OptionValueFileSpec.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/lldb/source/Interpreter/OptionValueFileSpec.cpp b/lldb/source/Interpreter/OptionValueFileSpec.cpp
index 716780e8876..c1bcae2fc6c 100644
--- a/lldb/source/Interpreter/OptionValueFileSpec.cpp
+++ b/lldb/source/Interpreter/OptionValueFileSpec.cpp
@@ -94,8 +94,17 @@ OptionValueFileSpec::SetValueFromCString (const char *value_cstr,
case eVarSetOperationAssign:
if (value_cstr && value_cstr[0])
{
- m_value_was_set = true;
- m_current_value.SetFile(value_cstr, true);
+ Args args(value_cstr);
+ if (args.GetArgumentCount() == 1)
+ {
+ const char *path = args.GetArgumentAtIndex(0);
+ m_value_was_set = true;
+ m_current_value.SetFile(path, true);
+ }
+ else
+ {
+ error.SetErrorString("please supply a single path argument for this file or quote the path if it contains spaces");
+ }
}
else
{
OpenPOWER on IntegriCloud