[Bug libstdc++/51956] [patch] improve shared_ptr and weak_ptr pretty-printers for gdb
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Feb 5 19:13:00 GMT 2012
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
More information about the Gcc-bugs
mailing list