]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/ChangeLog
Make fixed_point_type_base_type a method of struct type
authorJoel Brobecker <brobecker@adacore.com>
Tue, 24 Nov 2020 02:48:23 +0000 (21:48 -0500)
committerJoel Brobecker <brobecker@adacore.com>
Tue, 24 Nov 2020 02:48:23 +0000 (21:48 -0500)
commitd19937a74c51872e8bbff6e37d9b89b202519b07
treea71a396d5b956b873682cf8829db491886c1fed3
parent2a12c336b9d55189780846324eda98c66d543de7
Make fixed_point_type_base_type a method of struct type

As suggested by Simon, to logically connect this function to
the object it inspects.

Note that, logically, this method should be "const". Unfortunately,
the implementation iterates on struct type objects starting with "this",
and thus trying to declare the method "const" triggers a compilation
error.

gdb/ChangeLog:

        * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
        replacing the fixed_point_type_base_type function. All callers
        updated throughout this project.
        (fixed_point_type_base_type): Remove declaration.
        * gdbtypes.c (type::fixed_point_type_base_type): Replaces
        fixed_point_type_base_type.  Adjust implementation accordingly.
gdb/ChangeLog
gdb/ada-valprint.c
gdb/gdbtypes.c
gdb/gdbtypes.h
gdb/valprint.c
gdb/value.c