This diff is adding the capping_size determination for the list and forward list, to limit the number of children to be displayed. Also it modifies and unifies tests for libcxx and libstdcpp list data formatter.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
lldb/examples/synthetic/gnu_libstdcpp.py | ||
---|---|---|
60–62 | I will change this to the following: `if not _list_uses_loop_detector of self.has_prev: logger >> "Asked not to use loop detection return False"` |
lldb/examples/synthetic/gnu_libstdcpp.py | ||
---|---|---|
14–16 | you have to use > instead of >= | |
34–38 | this shouldn't fail, so remove the try/except | |
59–66 | these changes shouldn't be here, as has_loop should only be called if the size is not present as a member of the variable. num_children is the method that is called by lldb to determine the size of the structure, which invokes num_children_impl only if the count is not a member variable. So I have the impression that this code is redundant | |
lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/forward_list/TestDataFormatterGenericForwardList.py | ||
66 | create another test in which you set the setting to 3, for example, and then check the output |
you have to use > instead of >=