diff options
author | Enrico Granata <egranata@apple.com> | 2015-03-12 22:16:20 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2015-03-12 22:16:20 +0000 |
commit | 3fa6dc904a58c8433add5576025e48eab8cbad10 (patch) | |
tree | 14712d59fb79d4698721bfa39c33c975227a6b6f /lldb/source/DataFormatters/ValueObjectPrinter.cpp | |
parent | 55ca608cdca6c0b40338d4fe07578c6d0ddb3a31 (diff) | |
download | bcm5719-llvm-3fa6dc904a58c8433add5576025e48eab8cbad10.tar.gz bcm5719-llvm-3fa6dc904a58c8433add5576025e48eab8cbad10.zip |
Fix an issue where values would be printed in one-line mode even if you asked to see locations and/or asked for flat output mode
llvm-svn: 232113
Diffstat (limited to 'lldb/source/DataFormatters/ValueObjectPrinter.cpp')
-rw-r--r-- | lldb/source/DataFormatters/ValueObjectPrinter.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lldb/source/DataFormatters/ValueObjectPrinter.cpp b/lldb/source/DataFormatters/ValueObjectPrinter.cpp index 5560ce2971e..8fd627020bc 100644 --- a/lldb/source/DataFormatters/ValueObjectPrinter.cpp +++ b/lldb/source/DataFormatters/ValueObjectPrinter.cpp @@ -631,7 +631,11 @@ ValueObjectPrinter::PrintChildrenIfNeeded (bool value_printed, uint32_t curr_ptr_depth = m_ptr_depth; bool print_children = ShouldPrintChildren (is_failed_description,curr_ptr_depth); - bool print_oneline = (curr_ptr_depth > 0 || options.m_show_types || !options.m_allow_oneliner_mode) ? false : DataVisualization::ShouldPrintAsOneLiner(*m_valobj); + bool print_oneline = (curr_ptr_depth > 0 || + options.m_show_types || + !options.m_allow_oneliner_mode || + options.m_flat_output || + options.m_show_location) ? false : DataVisualization::ShouldPrintAsOneLiner(*m_valobj); if (print_children) { |