This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/13342] insufficient memory is fetched from the inferior forpartially destroyed C++ objects
- From: "tromey at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Thu, 03 Nov 2011 16:56:50 +0000
- Subject: [Bug c++/13342] insufficient memory is fetched from the inferior forpartially destroyed C++ objects
- Auto-submitted: auto-generated
- References: <bug-13342-4717@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=13342
--- Comment #4 from Tom Tromey <tromey at redhat dot com> 2011-11-03 16:56:50 UTC ---
(In reply to comment #3)
> Thanks for looking into this, Tom.
No problem.
What is odd is that my 7.2 does exactly what my later builds do.
Does your build have local patches that might affect this?
Could you possibly try 7.3.1 or CVS HEAD?
Otherwise I am wondering whether it is somehow a compiler difference.
> I wonder why it only shows you the Fruit. Is this a difference between 7.2 and
> HEAD? What happens when you "p *(class Apple *)this" in ~Apple?
The same:
(gdb) p *(class Apple *) this
$5 = (Fruit) {
_vptr.Fruit = 0x400910,
fruit1 = 1,
fruit2 = 2,
fruit3 = 3,
fruit4 = 4
}
I tend to agree with you that gdb should show an Apple here, not a Fruit.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.