This is an archive of the discontinued LLVM Phabricator instance.

[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
if the current value object failed to print itself. Change that to
always respect the max depth, even if failure occurs

rdar://109855463

Diff Detail

Event Timeline

augusto2112 created this revision.Jun 7 2023, 4:20 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 7 2023, 4:20 PM
augusto2112 requested review of this revision.Jun 7 2023, 4:20 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 7 2023, 4:20 PM
kastiglione accepted this revision.Jun 7 2023, 4:55 PM
This revision is now accepted and ready to land.Jun 7 2023, 4:55 PM

Remove failure check

Would that be testable by implementing a python data formatter for a C struct that unconditionally returns an error?