diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2019-01-19 10:06:29 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2019-01-19 10:06:29 +0000 | 
| commit | 94994d372d014ce4c8758b9605d63fae651bd8aa (patch) | |
| tree | 51c0b708bd59f205d6b35cb2a8c24d62f0c33d77 /source/Interpreter/Property.cpp | |
| parent | 39be7ce23363d12ae3e49aeb1fdb2bfeb892e836 (diff) | |
Notes
Diffstat (limited to 'source/Interpreter/Property.cpp')
| -rw-r--r-- | source/Interpreter/Property.cpp | 13 | 
1 files changed, 7 insertions, 6 deletions
diff --git a/source/Interpreter/Property.cpp b/source/Interpreter/Property.cpp index 369029bc570d3..5f1022347cf49 100644 --- a/source/Interpreter/Property.cpp +++ b/source/Interpreter/Property.cpp @@ -9,10 +9,6 @@  #include "lldb/Interpreter/Property.h" -// C Includes -// C++ Includes -// Other libraries and framework includes -// Project includes  #include "lldb/Core/UserSettingsController.h"  #include "lldb/Host/StringConvert.h"  #include "lldb/Interpreter/CommandInterpreter.h" @@ -102,8 +98,10 @@ Property::Property(const PropertyDefinition &definition)      // "definition.default_uint_value" represents if the      // "definition.default_cstr_value" should be resolved or not      const bool resolve = definition.default_uint_value != 0; -    m_value_sp.reset(new OptionValueFileSpec( -        FileSpec(definition.default_cstr_value, resolve), resolve)); +    FileSpec file_spec = FileSpec(definition.default_cstr_value); +    if (resolve) +      FileSystem::Instance().Resolve(file_spec); +    m_value_sp.reset(new OptionValueFileSpec(file_spec, resolve));      break;    } @@ -233,7 +231,10 @@ void Property::Dump(const ExecutionContext *exe_ctx, Stream &strm,                      uint32_t dump_mask) const {    if (m_value_sp) {      const bool dump_desc = dump_mask & OptionValue::eDumpOptionDescription; +    const bool dump_cmd = dump_mask & OptionValue::eDumpOptionCommand;      const bool transparent = m_value_sp->ValueIsTransparent(); +    if (dump_cmd && !transparent) +      strm << "settings set -f ";      if (dump_desc || !transparent) {        if ((dump_mask & OptionValue::eDumpOptionName) && m_name) {          DumpQualifiedName(strm);  | 
