This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Unexpected DW_AT_type for Ada strings on s390x?
> Right, the two-element structure is passed by reference on s390x. But
> that also applies to the same structure in C/C++. Nevertheless, with C
> the argument's DW_AT_type reflects the real type and gcc adjusts the
> DW_AT_location instead.
It's passed by invisible reference in C and explicit reference in Ada.
> Thanks. Eric, do you confirm that it's intentional to adjust the
> DW_AT_type based on ABI?
The ABIs are indeed different so the debug info will be different.
--
Eric Botcazou