]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdbarch: use predefault for more value components within gdbarch
authorAndrew Burgess <aburgess@redhat.com>
Fri, 10 Mar 2023 15:19:42 +0000 (15:19 +0000)
committerAndrew Burgess <aburgess@redhat.com>
Mon, 13 Mar 2023 21:51:04 +0000 (21:51 +0000)
commit350796840f7058bd0bdb4a3be2343014c3704de1
tree2926c19ae46d7456294de795e7b274b91dfef2fd
parent6e2d282d74bfd961e64348199b92beb1cb648f6a
gdbarch: use predefault for more value components within gdbarch

For some reason the following value components of gdbarch:

  bfloat16_format
  half_format
  float_format
  double_format
  long_double_format
  so_ops

All use a postdefault but no predefault to set the default value for
the component.

As the postdefault values for these components are all constant
pointers that don't depend on other fields within the gdbarch, then I
don't see any reason why we couldn't use a predefault instead.

So lets do that.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/gdbarch.c
gdb/gdbarch_components.py