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

            Bug ID: 59253
           Summary: Python pretty printer should be improved for
                    unique_ptr, shared_ptr and map
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: leo.terziman at clarte dot asso.fr

Created attachment 31273
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31273&action=edit
Patch to improve pretty printing of map, shared_ptr and unique_ptr

Some of the STL based containers have incomplete/incorrect pretty printing in
libstdc++-v3/python.

In particular, std::shared_ptr and std::unique_ptr should dereference their
value to facilitate debugging with gdb. Moreover, in std::map, the keys and
values are mixed together in the same list instead of producing a list of pairs
with 'first' and 'second' attributes.

I don't know if their is some technical justification for such behavior, but in
case it is indeed an error, I attached a patch that solve those issues.

Reply via email to