[Lldb-commits] [lldb] e438a90 - [lldb] Increment max-children-depth to 5 (#178717)
via lldb-commits
lldb-commits at lists.llvm.org
Fri Jan 30 09:02:07 PST 2026
Author: Dave Lee
Date: 2026-01-30T09:02:03-08:00
New Revision: e438a903dbf2dd256ba2b4097a15ed8e9e0ede57
URL: https://github.com/llvm/llvm-project/commit/e438a903dbf2dd256ba2b4097a15ed8e9e0ede57
DIFF: https://github.com/llvm/llvm-project/commit/e438a903dbf2dd256ba2b4097a15ed8e9e0ede57.diff
LOG: [lldb] Increment max-children-depth to 5 (#178717)
`max-children-depth` was [originally 6][1], which produced too large of
output. It was then [reduced to 4][2], which for some people is too low.
This change is to try 5 as the default.
Originally upstreamed in
https://github.com/llvm/llvm-project/pull/149282
[1]:
https://github.com/swiftlang/llvm-project/pull/4280/changes/ee0782bf6b2e9705e261c5a82147ce0e45a8d753
[2]: https://github.com/swiftlang/llvm-project/pull/10683
Added:
Modified:
lldb/source/Target/TargetProperties.td
lldb/test/Shell/Settings/TestChildDepthTruncation.test
Removed:
################################################################################
diff --git a/lldb/source/Target/TargetProperties.td b/lldb/source/Target/TargetProperties.td
index e6cd48a9d3dad..b8ac3660fb2d7 100644
--- a/lldb/source/Target/TargetProperties.td
+++ b/lldb/source/Target/TargetProperties.td
@@ -99,7 +99,7 @@ let Definition = "target" in {
DefaultUnsignedValue<24>,
Desc<"Maximum number of children to expand in any level of depth.">;
def MaxChildrenDepth: Property<"max-children-depth", "UInt64">,
- DefaultUnsignedValue<4>,
+ DefaultUnsignedValue<5>,
Desc<"Maximum depth to expand children.">;
def MaxSummaryLength: Property<"max-string-summary-length", "UInt64">,
DefaultUnsignedValue<1024>,
diff --git a/lldb/test/Shell/Settings/TestChildDepthTruncation.test b/lldb/test/Shell/Settings/TestChildDepthTruncation.test
index 7e4fbbef9e458..b09f98ebd1a5a 100644
--- a/lldb/test/Shell/Settings/TestChildDepthTruncation.test
+++ b/lldb/test/Shell/Settings/TestChildDepthTruncation.test
@@ -18,15 +18,18 @@
#--- main.cpp
struct L1 {
- int w;
+ int a;
struct L2 {
- int x;
+ int b;
struct L3 {
- int y;
+ int c;
struct L4 {
- int z;
+ int d;
struct L5 {
- int a;
+ int e;
+ struct L6 {
+ int f;
+ } l6;
} l5;
} l4;
} l3;
More information about the lldb-commits
mailing list