This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 2/3] gdb/testsuite/gdb.cp: Fix tests for ARM C++ ABI.
- From: Will Newton <will dot newton at linaro dot org>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>, Patch Tracking <patches at linaro dot org>
- Date: Wed, 5 Jun 2013 18:52:17 +0100
- Subject: Re: [PATCH 2/3] gdb/testsuite/gdb.cp: Fix tests for ARM C++ ABI.
- References: <51AF143F dot 8000205 at linaro dot org> <87mwr4k116 dot fsf at fleche dot redhat dot com>
On 5 June 2013 16:52, Tom Tromey <tromey@redhat.com> wrote:
>>>>>> "Will" == Will Newton <will.newton@linaro.org> writes:
>
> Will> The ARM C++ ABI defines constructors and destructors to return
> Will> pointers to this. The C++ tests that check the types of constructors
> Will> and destructors expect a return type of void. Conditionalize these
> Will> tests so they pass on ARM.
>
> I think conditionalizing is fine, but I was curious about the results:
>
> Will> + gdb_test "ptype t3::~t3" "type = void \\*\\(t3 \\* const\\)" \
>
> Why does the destructor return 'void *' here but not elsewhere?
I'm not sure where elsewhere is? ;-)
For reference it's documented here:
http://infocenter.arm.com/help/topic/com.arm.doc.ihi0041d/IHI0041D_cppabi.pdf
Bottom of page 9 / top of 10.
--
Will Newton
Toolchain Working Group, Linaro