diff options
author | Joel Brobecker <brobecker@adacore.com> | 2020-11-23 21:49:13 -0500 |
---|---|---|
committer | Joel Brobecker <brobecker@adacore.com> | 2020-11-23 21:49:13 -0500 |
commit | e6fcee3a73ddab55e3b35b7705b01035383e5417 (patch) | |
tree | 38ef476f6ba4c32b607fefa0b189cca54ff667a3 /gdb/value.c | |
parent | d19937a74c51872e8bbff6e37d9b89b202519b07 (diff) | |
download | gdb-e6fcee3a73ddab55e3b35b7705b01035383e5417.zip gdb-e6fcee3a73ddab55e3b35b7705b01035383e5417.tar.gz gdb-e6fcee3a73ddab55e3b35b7705b01035383e5417.tar.bz2 |
Make function fixed_point_scaling_factor a method of struct type
This logically connects this function to the object it inspects.
gdb/ChangeLog:
* gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
replacing fixed_point_scaling_factor. All callers updated
throughout this project.
(fixed_point_scaling_factor): Delete declaration.
* gdbtypes.c (type::fixed_point_scaling_factor): Replaces
fixed_point_scaling_factor. Adjust implementation accordingly.
Diffstat (limited to 'gdb/value.c')
-rw-r--r-- | gdb/value.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/value.c b/gdb/value.c index f6c1a36..0087fe5 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -2814,7 +2814,7 @@ unpack_long (struct type *type, const gdb_byte *valaddr) gdb_mpq vq; vq.read_fixed_point (gdb::make_array_view (valaddr, len), byte_order, nosign, - fixed_point_scaling_factor (type)); + type->fixed_point_scaling_factor ()); gdb_mpz vz; mpz_tdiv_q (vz.val, mpq_numref (vq.val), mpq_denref (vq.val)); |