diff options
Diffstat (limited to 'lldb/source/DataFormatters/FormatManager.cpp')
-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) |