diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2021-04-01 21:10:08 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2021-04-01 21:10:08 -0400 |
commit | aa70e35c71a2bfa8c2733878b665edb39c171d34 (patch) | |
tree | 5d8bcf5241d4d3d37f6cd32468765295dfba68c5 /sim | |
parent | 3451a2d7a3501e9c3fc344cbc4950c495f30c16d (diff) | |
download | gdb-aa70e35c71a2bfa8c2733878b665edb39c171d34.zip gdb-aa70e35c71a2bfa8c2733878b665edb39c171d34.tar.gz gdb-aa70e35c71a2bfa8c2733878b665edb39c171d34.tar.bz2 |
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
Diffstat (limited to 'sim')
0 files changed, 0 insertions, 0 deletions