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/p-lang.c | |
parent | 8a50fdcefc44c40d5c4b978f19c22ddfbeb29139 (diff) | |
download | fsf-binutils-gdb-27710edb4e588d0360620df424dd7ee7e8cfafee.zip fsf-binutils-gdb-27710edb4e588d0360620df424dd7ee7e8cfafee.tar.gz fsf-binutils-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/p-lang.c')
-rw-r--r-- | gdb/p-lang.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/p-lang.c b/gdb/p-lang.c index 1597e9c..87590c9 100644 --- a/gdb/p-lang.c +++ b/gdb/p-lang.c @@ -108,7 +108,7 @@ pascal_is_string_type (struct type *type,int *length_pos, int *length_size, if (string_pos) *string_pos = type->field (1).loc_bitpos () / TARGET_CHAR_BIT; if (char_type) - *char_type = TYPE_TARGET_TYPE (type->field (1).type ()); + *char_type = type->field (1).type ()->target_type (); if (arrayname) *arrayname = type->field (1).name (); return 2; @@ -130,10 +130,10 @@ pascal_is_string_type (struct type *type,int *length_pos, int *length_size, /* FIXME: how can I detect wide chars in GPC ?? */ if (char_type) { - *char_type = TYPE_TARGET_TYPE (type->field (2).type ()); + *char_type = type->field (2).type ()->target_type (); if ((*char_type)->code () == TYPE_CODE_ARRAY) - *char_type = TYPE_TARGET_TYPE (*char_type); + *char_type = (*char_type)->target_type (); } if (arrayname) *arrayname = type->field (2).name (); |