Make function fixed_point_scaling_factor a method of struct type
authorJoel Brobecker <brobecker@adacore.com>
Tue, 24 Nov 2020 02:49:13 +0000 (21:49 -0500)
committerJoel Brobecker <brobecker@adacore.com>
Tue, 24 Nov 2020 02:49:13 +0000 (21:49 -0500)
commite6fcee3a73ddab55e3b35b7705b01035383e5417
tree38ef476f6ba4c32b607fefa0b189cca54ff667a3
parentd19937a74c51872e8bbff6e37d9b89b202519b07
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.
gdb/ChangeLog
gdb/gdbtypes.c
gdb/gdbtypes.h
gdb/typeprint.c
gdb/valarith.c
gdb/valops.c
gdb/valprint.c
gdb/value.c