diff options
author | Joel Brobecker <brobecker@adacore.com> | 2020-11-23 21:47:40 -0500 |
---|---|---|
committer | Joel Brobecker <brobecker@adacore.com> | 2020-11-23 21:47:40 -0500 |
commit | 2a12c336b9d55189780846324eda98c66d543de7 (patch) | |
tree | bbb0516d696c7d803a5e51481bd70c899e0641ab /gdb/dwarf2 | |
parent | c9f0b43fe46f473e4de3494f95b11ffb3d5a42a8 (diff) | |
download | gdb-2a12c336b9d55189780846324eda98c66d543de7.zip gdb-2a12c336b9d55189780846324eda98c66d543de7.tar.gz gdb-2a12c336b9d55189780846324eda98c66d543de7.tar.bz2 |
gdbtypes.h: Get rid of the TYPE_FIXED_POINT_INFO macro
This is one step further towards the removal of all these macros.
gdb/ChangeLog:
* gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
New methods.
(INIT_FIXED_POINT_SPECIFIC): Adjust.
(TYPE_FIXED_POINT_INFO): Delete macro.
(allocate_fixed_point_type_info): Change return type to void.
* gdbtypes.c (copy_type_recursive): Replace the use of
TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
(fixed_point_scaling_factor): Likewise.
(allocate_fixed_point_type_info): Change return type to void.
Adjust implementation accordingly.
* dwarf2/read.c (finish_fixed_point_type): Replace the use of
TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
Diffstat (limited to 'gdb/dwarf2')
-rw-r--r-- | gdb/dwarf2/read.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index f879753..601a571 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -18162,7 +18162,7 @@ get_dwarf2_unsigned_rational_constant (struct die_info *die, } /* Assuming DIE corresponds to a fixed point type, finish the creation - of the corresponding TYPE by setting its TYPE_FIXED_POINT_INFO. + of the corresponding TYPE by setting its type-specific data. CU is the DIE's CU. */ static void @@ -18232,7 +18232,7 @@ finish_fixed_point_type (struct type *type, struct die_info *die, sect_offset_str (die->sect_off)); } - gdb_mpq &scaling_factor = TYPE_FIXED_POINT_INFO (type)->scaling_factor; + gdb_mpq &scaling_factor = type->fixed_point_info ().scaling_factor; gdb_mpz tmp_z (scale_num); mpz_set (mpq_numref (scaling_factor.val), tmp_z.val); |