From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20633 invoked by alias); 18 Jun 2014 12:52:21 -0000 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 Received: (qmail 20604 invoked by uid 48); 18 Jun 2014 12:52:20 -0000 From: "sivachandra at google dot com" To: gdb-prs@sourceware.org Subject: [Bug c++/13403] invalid vptr after gdb prints the return value of a virtual function member on x86_64 system Date: Wed, 18 Jun 2014 12:52: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-Version: 7.3 X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: sivachandra at google dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: gbenson at redhat dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-q2/txt/msg00452.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=13403 Siva Chandra changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sivachandra at google dot com --- Comment #1 from Siva Chandra --- I think the source of the problem is bad calling convention. FWIW, amd64-tdep.c does not align with http://mentorembedded.github.io/cxx-abi/abi.html#return-value. I do not think the fix is straight forward (consider c++11 with =default annotations on the destructors and constructors which is not emitted in the DWARF by gcc currently). One could probably come up with a fix which can improve the situation but not fix this problem thoroughly. -- You are receiving this mail because: You are on the CC list for the bug.