This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/51956] [patch] improve shared_ptr and weak_ptr pretty-printers for gdb
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 05 Feb 2012 19:13:06 +0000
- Subject: [Bug libstdc++/51956] [patch] improve shared_ptr and weak_ptr pretty-printers for gdb
- Auto-submitted: auto-generated
- References: <bug-51956-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51956
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.7.0
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-02-05 19:13:06 UTC ---
I didn't use your patch, as it printed the wrong thing for the weak count
(_M_weak_count is #weak + (#shared != 0) not #weak + #nshared)
now it prints one of:
(count N, M weak)
(expired, M weak) for an expired weak pointer
(empty) for an empty pointer