Unexpected DW_AT_type for Ada strings on s390x?

Eric Botcazou ebotcazou@adacore.com
Wed Dec 5 09:33:00 GMT 2012


> 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



More information about the Gdb mailing list