From 553fad5c9ab69172dbf5b0b3d927eccd0ead8924 Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Fri, 25 Oct 2013 23:09:40 +0000 Subject: Introduce a new boolean setting enable-auto-oneliner This setting if set to false will force LLDB to not use the new compact one-line display By default, one-line mode stays on, at least until we can be confident it works. But now if it seriously impedes your workflow while it evolves/it works wonders but you still hate it, there's a way to turn it off llvm-svn: 193450 --- lldb/source/DataFormatters/FormatManager.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lldb/source/DataFormatters/FormatManager.cpp') diff --git a/lldb/source/DataFormatters/FormatManager.cpp b/lldb/source/DataFormatters/FormatManager.cpp index c4540b5210c..911125b2481 100644 --- a/lldb/source/DataFormatters/FormatManager.cpp +++ b/lldb/source/DataFormatters/FormatManager.cpp @@ -334,6 +334,10 @@ FormatManager::GetSingleItemFormat(lldb::Format vector_format) bool FormatManager::ShouldPrintAsOneLiner (ValueObject& valobj) { + // if settings say no oneline whatsoever + if (valobj.GetTargetSP().get() && valobj.GetTargetSP()->GetDebugger().GetEnableAutoOneLine() == false) + return false; // then don't oneline + // if this object has a summary, don't try to do anything special to it // if the user wants one-liner, they can ask for it in summary :) if (valobj.GetSummaryFormat().get() != nullptr) -- cgit v1.2.3