You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is this pretty-printer gets the data only from the root node and doesn't take into account the structure of B-tree. It is necessary to implement the iteration over all tree, so the bug is not so easy to fix. I will try to do it in the near of future, together with the HashMap, but not sure if I can handle it.
The BTreeSet and BTreeMap gdb pretty-printers did not take the node
structure into account, and consequently only worked for shallow sets.
This fixes the problem by iterating over child nodes when needed.
This patch avoids the current approach of implementing some of the
value manipulations in debugger-indepdendent code. This was done for
convenience: a type lookup was needed for the first time, and there
currently are no lldb formatters for these types.
Closesrust-lang#55771
…ichton
Fix BTreeSet and BTreeMap gdb pretty-printers
The BTreeSet and BTreeMap gdb pretty-printers did not take the node
structure into account, and consequently only worked for shallow sets.
This fixes the problem by iterating over child nodes when needed.
This patch avoids the current approach of implementing some of the
value manipulations in debugger-indepdendent code. This was done for
convenience: a type lookup was needed for the first time, and there
currently are no lldb formatters for these types.
Closesrust-lang#55771
As noted here, the
BTreeMap
pretty-printer for gdb only works for a small number of elements.For example, this works:
However, if you change the 10 to 15, it will stop working:
The text was updated successfully, but these errors were encountered: