diff options
author | Omair Javaid <omair.javaid@linaro.org> | 2016-11-22 09:47:00 +0000 |
---|---|---|
committer | Omair Javaid <omair.javaid@linaro.org> | 2016-11-22 09:47:00 +0000 |
commit | 99a318e11220f733e8bae8cb8417862ac979f7ea (patch) | |
tree | a588e205dd582de84165c9af8b39a5941be1e011 /lldb/source/Commands/CommandObjectSettings.cpp | |
parent | 49b3733d57692a4726cce257e95932f2b74a2b30 (diff) | |
download | bcm5719-llvm-99a318e11220f733e8bae8cb8417862ac979f7ea.tar.gz bcm5719-llvm-99a318e11220f733e8bae8cb8417862ac979f7ea.zip |
Fix build failure on Linux and BSD by reverting r287597
Linux and BSD builds failing after this changes from rev 287597.
llvm-svn: 287631
Diffstat (limited to 'lldb/source/Commands/CommandObjectSettings.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectSettings.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lldb/source/Commands/CommandObjectSettings.cpp b/lldb/source/Commands/CommandObjectSettings.cpp index 23fdcb9e895..0a97804fbf6 100644 --- a/lldb/source/Commands/CommandObjectSettings.cpp +++ b/lldb/source/Commands/CommandObjectSettings.cpp @@ -293,10 +293,15 @@ protected: bool DoExecute(Args &args, CommandReturnObject &result) override { result.SetStatus(eReturnStatusSuccessFinishResult); + const size_t argc = args.GetArgumentCount(); if (!args.empty()) { - for (const auto &arg : args) { + // TODO: Convert this to StringRef based enumeration. Requires converting + // DumpPropertyValue first. + for (size_t i = 0; i < argc; ++i) { + const char *property_path = args.GetArgumentAtIndex(i); + Error error(m_interpreter.GetDebugger().DumpPropertyValue( - &m_exe_ctx, result.GetOutputStream(), arg.ref, + &m_exe_ctx, result.GetOutputStream(), property_path, OptionValue::eDumpGroupValue)); if (error.Success()) { result.GetOutputStream().EOL(); |