This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/13403] invalid vptr after gdb prints the return value of a virtual function member on x86_64 system


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]