diff options
author | Jason Molenda <jmolenda@apple.com> | 2012-10-11 06:05:54 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 2012-10-11 06:05:54 +0000 |
commit | 3f9fa52ca7f19d56a356f53676168e22293b5990 (patch) | |
tree | 96872490d2885aad6ed2a71ebce46d26d8a1c75a /lldb/source/Interpreter/OptionValueFileSpec.cpp | |
parent | 22f2fff3ff905a81dcfe27582da897e953c15ce3 (diff) | |
download | bcm5719-llvm-3f9fa52ca7f19d56a356f53676168e22293b5990.tar.gz bcm5719-llvm-3f9fa52ca7f19d56a356f53676168e22293b5990.zip |
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>
llvm-svn: 165704
Diffstat (limited to 'lldb/source/Interpreter/OptionValueFileSpec.cpp')
-rw-r--r-- | lldb/source/Interpreter/OptionValueFileSpec.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Interpreter/OptionValueFileSpec.cpp b/lldb/source/Interpreter/OptionValueFileSpec.cpp index 62b80bc9f8b..944f0344173 100644 --- a/lldb/source/Interpreter/OptionValueFileSpec.cpp +++ b/lldb/source/Interpreter/OptionValueFileSpec.cpp @@ -93,7 +93,7 @@ OptionValueFileSpec::SetValueFromCString (const char *value_cstr, 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 { |