public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/59253] New: Python pretty printer should be improved for unique_ptr, shared_ptr and map
@ 2013-11-22 15:18 leo.terziman at clarte dot asso.fr
0 siblings, 0 replies; only message in thread
From: leo.terziman at clarte dot asso.fr @ 2013-11-22 15:18 UTC (permalink / raw)
To: gcc-bugs
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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-11-22 15:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-22 15:18 [Bug libstdc++/59253] New: Python pretty printer should be improved for unique_ptr, shared_ptr and map leo.terziman at clarte dot asso.fr
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).