From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12768 invoked by alias); 3 Nov 2011 16:57:26 -0000 Received: (qmail 12740 invoked by uid 22791); 3 Nov 2011 16:57:25 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 03 Nov 2011 16:57:11 +0000 From: "tromey at redhat dot com" To: gdb-prs@sourceware.org Subject: [Bug c++/13342] insufficient memory is fetched from the inferior for partially destroyed C++ objects Date: Thu, 03 Nov 2011 16:57:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tromey at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2011-q4/txt/msg00203.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=13342 --- Comment #4 from Tom Tromey 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.