diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2022-07-30 22:43:54 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2022-09-21 10:59:49 -0400 |
commit | 27710edb4e588d0360620df424dd7ee7e8cfafee (patch) | |
tree | af4da9f4c7e032ab6653536f2a991cbe09cee759 /gdb/avr-tdep.c | |
parent | 8a50fdcefc44c40d5c4b978f19c22ddfbeb29139 (diff) | |
download | gdb-27710edb4e588d0360620df424dd7ee7e8cfafee.zip gdb-27710edb4e588d0360620df424dd7ee7e8cfafee.tar.gz gdb-27710edb4e588d0360620df424dd7ee7e8cfafee.tar.bz2 |
gdb: remove TYPE_TARGET_TYPE
Remove the macro, replace all uses by calls to type::target_type.
Change-Id: Ie51d3e1e22f94130176d6abd723255282bb6d1ed
Diffstat (limited to 'gdb/avr-tdep.c')
-rw-r--r-- | gdb/avr-tdep.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/avr-tdep.c b/gdb/avr-tdep.c index 693d563..f020d21 100644 --- a/gdb/avr-tdep.c +++ b/gdb/avr-tdep.c @@ -319,8 +319,8 @@ avr_address_to_pointer (struct gdbarch *gdbarch, avr_convert_iaddr_to_raw (addr)); } /* Is it a code address? */ - else if (TYPE_TARGET_TYPE (type)->code () == TYPE_CODE_FUNC - || TYPE_TARGET_TYPE (type)->code () == TYPE_CODE_METHOD) + else if (type->target_type ()->code () == TYPE_CODE_FUNC + || type->target_type ()->code () == TYPE_CODE_METHOD) { /* A code pointer is word (16 bits) addressed. We shift the address down by 1 bit to convert it to a pointer. */ @@ -350,9 +350,9 @@ avr_pointer_to_address (struct gdbarch *gdbarch, return avr_make_iaddr (addr); } /* Is it a code address? */ - else if (TYPE_TARGET_TYPE (type)->code () == TYPE_CODE_FUNC - || TYPE_TARGET_TYPE (type)->code () == TYPE_CODE_METHOD - || TYPE_CODE_SPACE (TYPE_TARGET_TYPE (type))) + else if (type->target_type ()->code () == TYPE_CODE_FUNC + || type->target_type ()->code () == TYPE_CODE_METHOD + || TYPE_CODE_SPACE (type->target_type ())) { /* A code pointer is word (16 bits) addressed so we shift it up by 1 bit to convert it to an address. */ |