This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/51956] [patch] improve shared_ptr and weak_ptr pretty-printers for gdb


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]