Files
clang-p2996/lldb/test/API/lang/cpp/frame-var-depth-and-elem-count/main.cpp
Augusto Noronha f94c7ffe46 [lldb] Never print children if the max depth has been reached
When formatting a variable, the max depth would potentially be ignored
if the current value object failed to print itself. Change that to
always respect the max depth, even if failure occurs.

rdar://109855463

Differential Revision: https://reviews.llvm.org/D152409
2023-06-13 11:03:04 -07:00

20 lines
160 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;
}