Fix an issue where values would be printed in one-line mode even if you asked to...
authorEnrico Granata <egranata@apple.com>
Thu, 12 Mar 2015 22:16:20 +0000 (22:16 +0000)
committerEnrico Granata <egranata@apple.com>
Thu, 12 Mar 2015 22:16:20 +0000 (22:16 +0000)
llvm-svn: 232113

lldb/source/DataFormatters/ValueObjectPrinter.cpp

index 5560ce2..8fd6270 100644 (file)
@@ -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)
     {