This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/11864] Derived class when dereferencing a boost::shared_ptr
- From: "tromey at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 5 Aug 2010 17:04:33 -0000
- Subject: [Bug c++/11864] Derived class when dereferencing a boost::shared_ptr
- References: <20100731161026.11864.glslang@gmail.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From tromey at redhat dot com 2010-08-05 17:04 -------
I think you want "set print object on".
I put this in my .gdbinit years and years ago.
With it, I get:
(gdb) p *b.px
$6 = (B) {<A> = {_vptr.A = 0x8048cc0}, x_ = 0}
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at redhat dot com
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
http://sourceware.org/bugzilla/show_bug.cgi?id=11864
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.