Augusto Noronha b1ebfc5de3 [lldb] Unconditionally increment depth when printing children
The `target.max-children-depth` setting and `--depth` flag would be
ignored if treating pointer as arrays, fix that by always incrementing
the current depth when printing a new child.

rdar://109855463

Differential Revision: https://reviews.llvm.org/D151950
2023-06-08 13:30:30 -07:00

20 lines
174 B
C++

#include <cstdio>
struct A {
int i = 42;
};
struct B {
A a;
};
struct C {
B b;
};
int main() {
C *c = new C[5];
puts("break here");
return 0; // break here
}