summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/Property.cpp
diff options
context:
space:
mode:
authorVince Harron <vharron@google.com>2015-02-18 23:12:26 +0000
committerVince Harron <vharron@google.com>2015-02-18 23:12:26 +0000
commit1f4706c36e6cbe38d1717129591b5ee6dc56fc90 (patch)
tree6ec94a57d19ebb361866e9423eae228e52c48820 /lldb/source/Interpreter/Property.cpp
parent92b5979cb518667d29e1490debcbe81fe3d1cb38 (diff)
downloadbcm5719-llvm-1f4706c36e6cbe38d1717129591b5ee6dc56fc90.tar.gz
bcm5719-llvm-1f4706c36e6cbe38d1717129591b5ee6dc56fc90.zip
Fix SettingsCommandTestCase.test_set_error_output_path
target.error-path (and output-path) were getting resolved on the local file system, which doesn't make any sense for remote targets So this patch prevents file paths from being resolved on the host system. llvm-svn: 229763
Diffstat (limited to 'lldb/source/Interpreter/Property.cpp')
-rw-r--r--lldb/source/Interpreter/Property.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lldb/source/Interpreter/Property.cpp b/lldb/source/Interpreter/Property.cpp
index 5679ef8dd3b..ebc18bccbdf 100644
--- a/lldb/source/Interpreter/Property.cpp
+++ b/lldb/source/Interpreter/Property.cpp
@@ -94,10 +94,13 @@ Property::Property (const PropertyDefinition &definition) :
break;
case OptionValue::eTypeFileSpec:
+ {
// "definition.default_uint_value" represents if the "definition.default_cstr_value" should
// be resolved or not
- m_value_sp.reset (new OptionValueFileSpec(FileSpec(definition.default_cstr_value, definition.default_uint_value != 0)));
+ const bool resolve = definition.default_uint_value != 0;
+ m_value_sp.reset (new OptionValueFileSpec(FileSpec(definition.default_cstr_value, resolve), resolve));
break;
+ }
case OptionValue::eTypeFileSpecList:
// "definition.default_uint_value" is not used for a OptionValue::eTypeFileSpecList
OpenPOWER on IntegriCloud