[Lldb-commits] [lldb] r165704 - /lldb/trunk/source/Interpreter/OptionValueFileSpec.cpp

Jason Molenda jmolenda at apple.com
Thu Oct 11 01:05:54 CDT 2012


Author: jmolenda
Date: Thu Oct 11 01:05:54 2012
New Revision: 165704

URL: http://llvm.org/viewvc/llvm-project?rev=165704&view=rev
Log:
When OptionValueFileSpec is given a filename starting
with ~, we need to realpath it.  Fixes the case where

settings set target.expr-prefix ~/lldb.prefix.header

wouldn't read this prefix header file.  <rdar://problem/12475676> 

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=165704&r1=165703&r2=165704&view=diff
==============================================================================
--- lldb/trunk/source/Interpreter/OptionValueFileSpec.cpp (original)
+++ lldb/trunk/source/Interpreter/OptionValueFileSpec.cpp Thu Oct 11 01:05:54 2012
@@ -93,7 +93,7 @@
         if (value_cstr && value_cstr[0])
         {
             m_value_was_set = true;
-            m_current_value.SetFile(value_cstr, false);
+            m_current_value.SetFile(value_cstr, value_cstr[0] == '~');
         }
         else
         {




More information about the lldb-commits mailing list