mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
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>
This commit is contained in:
@@ -199,7 +199,7 @@ useful).
|
||||
Value(
|
||||
type="const struct floatformat **",
|
||||
name="bfloat16_format",
|
||||
postdefault="floatformats_bfloat16",
|
||||
predefault="floatformats_bfloat16",
|
||||
printer="pformat (gdbarch, gdbarch->bfloat16_format)",
|
||||
)
|
||||
|
||||
@@ -213,7 +213,7 @@ Value(
|
||||
Value(
|
||||
type="const struct floatformat **",
|
||||
name="half_format",
|
||||
postdefault="floatformats_ieee_half",
|
||||
predefault="floatformats_ieee_half",
|
||||
printer="pformat (gdbarch, gdbarch->half_format)",
|
||||
)
|
||||
|
||||
@@ -227,7 +227,7 @@ Value(
|
||||
Value(
|
||||
type="const struct floatformat **",
|
||||
name="float_format",
|
||||
postdefault="floatformats_ieee_single",
|
||||
predefault="floatformats_ieee_single",
|
||||
printer="pformat (gdbarch, gdbarch->float_format)",
|
||||
)
|
||||
|
||||
@@ -241,7 +241,7 @@ Value(
|
||||
Value(
|
||||
type="const struct floatformat **",
|
||||
name="double_format",
|
||||
postdefault="floatformats_ieee_double",
|
||||
predefault="floatformats_ieee_double",
|
||||
printer="pformat (gdbarch, gdbarch->double_format)",
|
||||
)
|
||||
|
||||
@@ -255,7 +255,7 @@ Value(
|
||||
Value(
|
||||
type="const struct floatformat **",
|
||||
name="long_double_format",
|
||||
postdefault="floatformats_ieee_double",
|
||||
predefault="floatformats_ieee_double",
|
||||
printer="pformat (gdbarch, gdbarch->long_double_format)",
|
||||
)
|
||||
|
||||
@@ -1316,7 +1316,7 @@ Value(
|
||||
comment="Vtable of solib operations functions.",
|
||||
type="const struct target_so_ops *",
|
||||
name="so_ops",
|
||||
postdefault="&solib_target_so_ops",
|
||||
predefault="&solib_target_so_ops",
|
||||
printer="host_address_to_string (gdbarch->so_ops)",
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user