[Lldb-commits] [PATCH] D113760: [formatters] Draft diff for unordered_map libstdcpp formatter
Danil Stefaniuc via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Nov 12 06:12:41 PST 2021
danilashtefan added inline comments.
================
Comment at: lldb/examples/synthetic/gnu_libstdcpp.py:77
+ key = self.get_child_key(index)
+ return current.CreateChildAtOffset('[' + str(key.GetValue()) + ']', self.next.GetType().GetByteSize() + self.data_size, self.data_type)
+
----------------
I assume that the cause of the first issue (different key value type) is located here. self.next.GetType().GetByteSize() + self.data_size does not work in this case. Key is read, however value - not. It means that we cannot always add self.data_size.
I tried to manually figure out on the unordered_map<char, int> case what can I add instead of self.data_size (which is 1 in this case), but got no success
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D113760/new/
https://reviews.llvm.org/D113760
More information about the lldb-commits
mailing list