aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectFrame.cpp
diff options
context:
space:
mode:
authorDave Lee <davelee.com@gmail.com>2022-04-26 16:34:10 -0700
committerDave Lee <davelee.com@gmail.com>2022-05-03 10:39:42 -0700
commit2f9fc576be206bd5c4fddfec5f89fceb3554a8d6 (patch)
tree91a8b4ace608f7763d3ad5675b75c515f0f05e30 /lldb/source/Commands/CommandObjectFrame.cpp
parent672b908bca672ad5b0ecffce653242f26a87cd20 (diff)
downloadllvm-2f9fc576be206bd5c4fddfec5f89fceb3554a8d6.zip
llvm-2f9fc576be206bd5c4fddfec5f89fceb3554a8d6.tar.gz
llvm-2f9fc576be206bd5c4fddfec5f89fceb3554a8d6.tar.bz2
[lldb] Add setting for max depth of value object printing (NFC)
This adds a setting (`target.max-children-depth`) that will provide a default value for the `--depth` flag used by `expression` and `frame variable`. The new setting uses the same default that's currently fixed in source: `UINT32_MAX`. This provides two purposes: 1. Allowing downstream forks to provide a customized default. 2. Allowing users to set their own default. Following `target.max-children-count`, a warning is emitted when the max depth is reached. The warning lets users know which flags or settings they can customize. This warning is shown only when the limit is the default value. rdar://87466495 Differential Revision: https://reviews.llvm.org/D123954
Diffstat (limited to 'lldb/source/Commands/CommandObjectFrame.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectFrame.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/lldb/source/Commands/CommandObjectFrame.cpp b/lldb/source/Commands/CommandObjectFrame.cpp
index ead0594..2a1cef7 100644
--- a/lldb/source/Commands/CommandObjectFrame.cpp
+++ b/lldb/source/Commands/CommandObjectFrame.cpp
@@ -695,11 +695,8 @@ protected:
}
}
- if (m_interpreter.TruncationWarningNecessary()) {
- result.GetOutputStream().Printf(m_interpreter.TruncationWarningText(),
- m_cmd_name.c_str());
- m_interpreter.TruncationWarningGiven();
- }
+ m_interpreter.PrintWarningsIfNecessary(result.GetOutputStream(),
+ m_cmd_name);
// Increment statistics.
bool res = result.Succeeded();