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 13:29:07 +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
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-02-05 13:29:07 UTC ---
I think my preferred format is (count N + M weak)
(gdb) p sp
$2 = std::shared_ptr (count 1 + 1 weak) 0x602010
(gdb) p wp
$3 = std::weak_ptr (count 1 + 1 weak) 0x602010
I'm also going to make it print the type, shared_ptr<int> would be much more
helpful than just shared_ptr