]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/ChangeLog
gdb: add type::name / type::set_name
authorSimon Marchi <simon.marchi@efficios.com>
Sat, 16 May 2020 16:15:54 +0000 (12:15 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Sat, 16 May 2020 16:36:05 +0000 (12:36 -0400)
commitd0e39ea27cde07011967ab74d39cf13dfe3370c4
tree582ea33260f21ba7bce52e063162fb0c83cd8b0b
parent2dab0c7ba0d69bcc16cfe58da279ce915ef24348
gdb: add type::name / type::set_name

Add the `name` and `set_name` methods on `struct type`, in order to
remove the `TYPE_NAME` macro.  In this patch, the `TYPE_NAME` macro is
changed to use `type::name`, so all the call sites that are used to set
the type name are changed to use `type::set_name`.  The next patch will
remove `TYPE_NAME` completely.

gdb/ChangeLog:

* gdbtypes.h (struct type) <name, set_name>: New methods.
(TYPE_CODE): Use type::name.  Change all call sites used to set
the name to use type::set_name instead.
21 files changed:
gdb/ChangeLog
gdb/ada-lang.c
gdb/arm-tdep.c
gdb/coffread.c
gdb/csky-tdep.c
gdb/ctfread.c
gdb/dwarf2/read.c
gdb/fbsd-tdep.c
gdb/gdbtypes.c
gdb/gdbtypes.h
gdb/gnu-v3-abi.c
gdb/i386-tdep.c
gdb/linux-tdep.c
gdb/mdebugread.c
gdb/opencl-lang.c
gdb/riscv-tdep.c
gdb/rs6000-tdep.c
gdb/rust-lang.c
gdb/stabsread.c
gdb/target-descriptions.c
gdb/windows-tdep.c