This is the mail archive of the gdb-patches@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]

Re: [PATCH 2/3] gdb/testsuite/gdb.cp: Fix tests for ARM C++ ABI.


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


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