[Lldb-commits] [lldb] r177139 - Rolled back r176719 because settings with file

Sean Callanan scallanan at apple.com
Thu Mar 14 18:39:45 PDT 2013


Author: spyffe
Date: Thu Mar 14 20:39:44 2013
New Revision: 177139

URL: http://llvm.org/viewvc/llvm-project?rev=177139&view=rev
Log:
Rolled back r176719 because settings with file
names were broken.

<rdar://problem/13422580>

Modified:
    lldb/trunk/source/Interpreter/OptionValueFileSpec.cpp

Modified: lldb/trunk/source/Interpreter/OptionValueFileSpec.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Interpreter/OptionValueFileSpec.cpp?rev=177139&r1=177138&r2=177139&view=diff
==============================================================================
--- lldb/trunk/source/Interpreter/OptionValueFileSpec.cpp (original)
+++ lldb/trunk/source/Interpreter/OptionValueFileSpec.cpp Thu Mar 14 20:39:44 2013
@@ -94,8 +94,17 @@ OptionValueFileSpec::SetValueFromCString
     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
         {





More information about the lldb-commits mailing list