diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2020-09-14 11:08:07 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2020-09-14 11:08:07 -0400 |
commit | db558e34b065552e67646879bd70867318a8ff5b (patch) | |
tree | a718e83e308dc84ee1d88d3d6f69c1af7d74ea16 /gdb/dwarf2 | |
parent | 22c4c60c865ad3251e28b7ac60a069e20c8a0378 (diff) | |
download | gdb-db558e34b065552e67646879bd70867318a8ff5b.zip gdb-db558e34b065552e67646879bd70867318a8ff5b.tar.gz gdb-db558e34b065552e67646879bd70867318a8ff5b.tar.bz2 |
gdb: add type::endianity_is_not_default / type::set_endianity_is_not_default
Add the `endianity_is_not_default` and `set_endianity_is_not_default`
methods on `struct type`, in order to remove the
`TYPE_ENDIANITY_NOT_DEFAULT` 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) <endianity_is_not_default,
set_endianity_is_not_default>: New methods.
(TYPE_ENDIANITY_NOT_DEFAULT): Use
type::endianity_is_not_default, change all write call sites to
use type::set_endianity_is_not_default.
Change-Id: I67acd68fcdae424d7e4a601afda78612ad5d92db
Diffstat (limited to 'gdb/dwarf2')
-rw-r--r-- | gdb/dwarf2/read.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index 410e4c8..0644a2d 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -18063,7 +18063,7 @@ read_base_type (struct die_info *die, struct dwarf2_cu *cu) maybe_set_alignment (cu, die, type); - TYPE_ENDIANITY_NOT_DEFAULT (type) = gdbarch_byte_order (arch) != byte_order; + type->set_endianity_is_not_default (gdbarch_byte_order (arch) != byte_order); return set_die_type (die, type, cu); } |