[RFA 1/6] Add initial type alignment support

Tom Tromey tom@tromey.com
Tue Apr 24 20:23:00 GMT 2018


>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:

>> +  if (gdbarch_ptr_bit (gdbarch) == 32 &&
>> +      TYPE_CODE (type) == TYPE_CODE_INT && TYPE_LENGTH (type) > 4)
>> +    return 4;

Pedro> && on the other line.

Hah.  Actually I think I meant to refactor this all a bit and make an
outer if that checked gdbarch_ptr_bit.

Tom



More information about the Gdb-patches mailing list