diff options
author | Sean Callanan <scallanan@apple.com> | 2013-03-08 20:59:47 +0000 |
---|---|---|
committer | Sean Callanan <scallanan@apple.com> | 2013-03-08 20:59:47 +0000 |
commit | 8773ce2fecaa0c7c49b7a62ea185143bb9e149b4 (patch) | |
tree | 7259b8c7a9458f248c676d3b98df7e6fc3abf7a4 /lldb/source/Interpreter/OptionValueFileSpec.cpp | |
parent | 24ccabfdc36e2a1e3a005c856a3683ed42ea3ac1 (diff) | |
download | bcm5719-llvm-8773ce2fecaa0c7c49b7a62ea185143bb9e149b4.tar.gz bcm5719-llvm-8773ce2fecaa0c7c49b7a62ea185143bb9e149b4.zip |
OptionValueFileSpec shouldn't be doing argument
parsing on the file name it gets. That confuses
it if there are spaces in the file name.
<rdar://problem/13380392>
llvm-svn: 176719
Diffstat (limited to 'lldb/source/Interpreter/OptionValueFileSpec.cpp')
-rw-r--r-- | lldb/source/Interpreter/OptionValueFileSpec.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/lldb/source/Interpreter/OptionValueFileSpec.cpp b/lldb/source/Interpreter/OptionValueFileSpec.cpp index c1bcae2fc6c..716780e8876 100644 --- a/lldb/source/Interpreter/OptionValueFileSpec.cpp +++ b/lldb/source/Interpreter/OptionValueFileSpec.cpp @@ -94,17 +94,8 @@ OptionValueFileSpec::SetValueFromCString (const char *value_cstr, case eVarSetOperationAssign: if (value_cstr && value_cstr[0]) { - 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"); - } + m_value_was_set = true; + m_current_value.SetFile(value_cstr, true); } else { |