This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/13403] invalid vptr after gdb prints the return value of a virtual function member on x86_64 system
- From: "sivachandra at google dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 18 Jun 2014 12:52:19 +0000
- Subject: [Bug c++/13403] invalid vptr after gdb prints the return value of a virtual function member on x86_64 system
- Auto-submitted: auto-generated
- References: <bug-13403-4717 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=13403
Siva Chandra <sivachandra at google dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sivachandra at google dot com
--- Comment #1 from Siva Chandra <sivachandra at google dot com> ---
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.