]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/ChangeLog
gdb: add type::is_declared_class / type::set_is_declared_class
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 2 Apr 2021 01:10:08 +0000 (21:10 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Fri, 2 Apr 2021 01:10:08 +0000 (21:10 -0400)
commitaa70e35c71a2bfa8c2733878b665edb39c171d34
tree5d8bcf5241d4d3d37f6cd32468765295dfba68c5
parent3451a2d7a3501e9c3fc344cbc4950c495f30c16d
gdb: add type::is_declared_class / type::set_is_declared_class

Add the `is_declared_class` and `set_is_declared_class` methods on
`struct type`, in order to remove the `TYPE_DECLARED_CLASS` macro.  In
this patch, the macro is changed to use the getter, so all the call
sites of the macro that are used as a setter are changed to use the
setter method directly.  The next patch will remove the macro
completely.

gdb/ChangeLog:

* gdbtypes.h (struct type) <is_declared_class,
set_is_declared_class>: New methods.
(TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
write call sites to use type::set_is_declared_class.

Change-Id: Idf08d32e137c885a0aba0a18f556a899c1cbfd68
gdb/ChangeLog
gdb/dwarf2/read.c
gdb/gdbtypes.h