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
command script import parallel-hashmap/phmap_lldb.py
b 28
run
p m
This gave me following output:
(phmap::flat_hash_map<ivec2, int, phmap::Hash<ivec2>, phmap::EqualTo<ivec2>, std::allocator<std::pair<const ivec2, int> > >) $0 = size = 2 (capacity = 3) { [0] = {{...}, {...}} { value = { first = (x = 18, y = 8) second = 0 } mutable_value = { first = (x = 18, y = 8) second = 0 } key = (x = 18, y = 8) } [1] = {{...}, {...}} { value = { first = (x = 0, y = 0) second = 0 } mutable_value = { first = (x = 0, y = 0) second = 0 } key = (x = 0, y = 0) }}
Notice key = (x = 0, y = 0) for the second element, while it should be key = (x = 18, y = 8).
Also, I don't know if it's easy to configure, but it's probably a good idea to remove repetition in the output too (key is printed 3 times, and the value is printed 2 times).
The text was updated successfully, but these errors were encountered:
Thanks for letting me know, @HolyBlackCat . It was a contribution and I don't use it myself, but I'll have a look when I have some time. It probably isn't too hard to fix.
The LLDB pretty-printer sometimes prints junk values. Consider following example:
I did:
Then typed:
This gave me following output:
Notice
key = (x = 0, y = 0)
for the second element, while it should bekey = (x = 18, y = 8)
.Also, I don't know if it's easy to configure, but it's probably a good idea to remove repetition in the output too (key is printed 3 times, and the value is printed 2 times).
The text was updated successfully, but these errors were encountered: