[PATCH 2/2] gdb: remove gdbarch_info_init

Simon Marchi simon.marchi@polymtl.ca
Wed Jun 23 20:35:59 GMT 2021


>> diff --git a/gdb/gdbarch.sh b/gdb/gdbarch.sh
>> index 01a5ac88219d..e82d711ff2c3 100755
>> --- a/gdb/gdbarch.sh
>> +++ b/gdb/gdbarch.sh
>> @@ -1533,18 +1533,20 @@ struct gdbarch_list
>>     struct gdbarch_info
>>   {
>> -  /* Use default: NULL (ZERO).  */
>> -  const struct bfd_arch_info *bfd_arch_info;
>> +  gdbarch_info ()
>> +    /* Ensure the union is zero-initialized.  Relies on the fact that there's
>> +       no member larget than TDESC_DATA.  */
> 
> Typo, larger?

Indeed!  Will fix locally, thanks.

Simon


More information about the Gdb-patches mailing list