From 27710edb4e588d0360620df424dd7ee7e8cfafee Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Sat, 30 Jul 2022 22:43:54 -0400 Subject: gdb: remove TYPE_TARGET_TYPE Remove the macro, replace all uses by calls to type::target_type. Change-Id: Ie51d3e1e22f94130176d6abd723255282bb6d1ed --- gdb/p-lang.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gdb/p-lang.c') 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 (); -- cgit v1.1