Community
Participate
Working Groups
When gdb returns a variable object with displayhint "map", CDT should show its children in a way that makes it clearer that it's a map. Currently, we have this: http://nova.polymtl.ca/~simark/ss/map.png map ... [0] 111 [1] 222 [2] 333 [3] 444 [4] 555 [5] 666 It makes it look like it's a vector, but I think that the display could be better. My first idea was this: map ... [111] 222 [333] 444 [555] 666 However, since keys can be complex structures with children themselves, it wouldn't work very well (you couldn't expand them). We could do how Java does it: map ... [0] ... [key] 111 [value] 222 [1] ... [key] 333 [value] 444 [2] ... [key] 555 [value] 666 What is annoying with this is that when all items are collapsed, you can't quickly visually search for a particular key (or value). To make this easier, we could display a quick preview of the key besides the item. map ... [0] 111 -> 222 [key] 111 [value] 222 [1] 333 -> 444 [key] 333 [value] 444 [2] 555 -> 666 [key] 555 [value] 666