diff options
author | Enrico Granata <egranata@apple.com> | 2013-10-25 23:09:40 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2013-10-25 23:09:40 +0000 |
commit | 553fad5c9ab69172dbf5b0b3d927eccd0ead8924 (patch) | |
tree | 4ce092e669ae2b74e3ba42f579f6c9e07385f3d1 /lldb/source/DataFormatters | |
parent | cbdea323acc1181d3943643b6247b1d8241ae930 (diff) | |
download | bcm5719-llvm-553fad5c9ab69172dbf5b0b3d927eccd0ead8924.tar.gz bcm5719-llvm-553fad5c9ab69172dbf5b0b3d927eccd0ead8924.zip |
<rdar://problem/15319880>
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
Diffstat (limited to 'lldb/source/DataFormatters')
-rw-r--r-- | lldb/source/DataFormatters/FormatManager.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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) |