https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59253

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Is it possible you were using a really old version of GDB that doesn't
understand the display hint?

    def display_hint (self):
        return 'map'

That causes GDB to display:

$1 = std::map with 3 elements = {["bar"] = 2, ["baz"] = 3, ["foo"] = 1}

instead of:

$1 = std::map with 3 elements = {[0] = "bar", [1] = 2, [2] = "baz", [3] = 3,
[4] = "foo", [5] = 1}

Reply via email to