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/d-valprint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/d-valprint.c') diff --git a/gdb/d-valprint.c b/gdb/d-valprint.c index 647a028..85b3da3 100644 --- a/gdb/d-valprint.c +++ b/gdb/d-valprint.c @@ -53,7 +53,7 @@ dynamic_array_type (struct type *type, length = unpack_field_as_long (type, valaddr + embedded_offset, 0); ptr_type = type->field (1).type (); - elttype = check_typedef (TYPE_TARGET_TYPE (ptr_type)); + elttype = check_typedef (ptr_type->target_type ()); addr = unpack_pointer (ptr_type, valaddr + type->field (1).loc_bitpos () / 8 + embedded_offset); -- cgit v1.1