[PATCH v3 3/3] Aarch64: Fix segfault when casting dummy calls
Pedro Alves
palves@redhat.com
Mon Oct 29 18:13:00 GMT 2018
On 10/29/2018 02:56 PM, Alan Hayward wrote:
> A-ha! Now I understand why I get two calls into _push_dummy_call.
>
> So to answer your question, the TYPE_CODE_PTR->TYPE_CODE_INT is the malloc call.
>
> Then the next call to _push_dummy_call has a return type of 0, as expected.
> This doesnât segfault because it goes into language_pass_by_reference which
> routes to default_pass_by_reference. The same as the C shared library version.
>
>
> Iâve updated the test so it does {c,c++}*{debug nodebug}.
> I can also update it to do both shared lib and non shared lib too. That should
> cover everything.
But still, why do you see a difference between shared library and non-shared
library?
Thanks,
Pedro Alves
More information about the Gdb-patches
mailing list