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
Paths
| Differential D152409
[lldb] Never print children if the max depth has been reached ClosedPublic Authored by augusto2112 on Jun 7 2023, 4:20 PM.
Details Summary When formatting a variable, the max depth would potentially be ignored rdar://109855463
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jun 7 2023, 4:55 PM Comment Actions Would that be testable by implementing a python data formatter for a C struct that unconditionally returns an error? Closed by commit rGf94c7ffe4640: [lldb] Never print children if the max depth has been reached (authored by augusto2112). · Explain WhyJun 13 2023, 11:07 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 530994 lldb/include/lldb/DataFormatters/ValueObjectPrinter.h
lldb/source/DataFormatters/ValueObjectPrinter.cpp
lldb/test/API/lang/cpp/frame-var-depth-and-elem-count/TestFrameVarDepthAndElemCount.py
lldb/test/API/lang/cpp/frame-var-depth-and-elem-count/main.cpp
|