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.


>>>>> "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?

Tom


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