]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/ChangeLog
gdb: remove TYPE_FIELD macro
authorSimon Marchi <simon.marchi@polymtl.ca>
Sat, 23 May 2020 21:39:54 +0000 (17:39 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Sat, 23 May 2020 21:39:54 +0000 (17:39 -0400)
commitceacbf6edf2c72aaa16280205a9bfc8513e9ed27
tree0e801f13f8c4c59f584af1e1cd5c9e49b225c3ab
parent26f16254544873f4d7450f6fbbc8f34bf3d2e359
gdb: remove TYPE_FIELD macro

Replace all uses of it by type::field.

Note that since type::field returns a reference to the field, some spots
are used to assign the whole field structure.  See ctfread.c, function
attach_fields_to_type, for example.  This is the same as was happening
with the macro, so I don't think it's a problem, but if anybody sees a
really nicer way to do this, now could be a good time to implement it.

gdb/ChangeLog:

* gdbtypes.h (TYPE_FIELD): Remove.  Replace all uses with
type::field.
31 files changed:
gdb/ChangeLog
gdb/aarch64-tdep.c
gdb/ada-lang.c
gdb/amd64-tdep.c
gdb/arm-tdep.c
gdb/ax-gdb.c
gdb/c-typeprint.c
gdb/c-varobj.c
gdb/coffread.c
gdb/compile/compile-c-symbols.c
gdb/compile/compile-cplus-types.c
gdb/cp-valprint.c
gdb/ctfread.c
gdb/dwarf2/read.c
gdb/eval.c
gdb/gdbtypes.c
gdb/gdbtypes.h
gdb/gnu-v3-abi.c
gdb/guile/scm-type.c
gdb/mips-tdep.c
gdb/p-typeprint.c
gdb/p-valprint.c
gdb/ppc-sysv-tdep.c
gdb/python/py-type.c
gdb/rust-lang.c
gdb/s390-tdep.c
gdb/stabsread.c
gdb/symtab.c
gdb/typeprint.c
gdb/valops.c
gdb/windows-tdep.c