From 8773ce2fecaa0c7c49b7a62ea185143bb9e149b4 Mon Sep 17 00:00:00 2001 From: Sean Callanan Date: Fri, 8 Mar 2013 20:59:47 +0000 Subject: [PATCH] OptionValueFileSpec shouldn't be doing argument parsing on the file name it gets. That confuses it if there are spaces in the file name. llvm-svn: 176719 --- lldb/source/Interpreter/OptionValueFileSpec.cpp | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/lldb/source/Interpreter/OptionValueFileSpec.cpp b/lldb/source/Interpreter/OptionValueFileSpec.cpp index c1bcae2fc6c1..716780e8876d 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 {