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/ia64-tdep.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gdb/ia64-tdep.c') diff --git a/gdb/ia64-tdep.c b/gdb/ia64-tdep.c index b7c1c0d..a4b59d9 100644 --- a/gdb/ia64-tdep.c +++ b/gdb/ia64-tdep.c @@ -3341,7 +3341,7 @@ is_float_or_hfa_type_recurse (struct type *t, struct type **etp) break; case TYPE_CODE_ARRAY: return - is_float_or_hfa_type_recurse (check_typedef (TYPE_TARGET_TYPE (t)), + is_float_or_hfa_type_recurse (check_typedef (t->target_type ()), etp); break; case TYPE_CODE_STRUCT: @@ -3393,7 +3393,7 @@ slot_alignment_is_next_even (struct type *t) return 0; case TYPE_CODE_ARRAY: return - slot_alignment_is_next_even (check_typedef (TYPE_TARGET_TYPE (t))); + slot_alignment_is_next_even (check_typedef (t->target_type ())); case TYPE_CODE_STRUCT: { int i; @@ -3747,7 +3747,7 @@ ia64_push_dummy_call (struct gdbarch *gdbarch, struct value *function, /* Special handling for function parameters. */ if (len == 8 && type->code () == TYPE_CODE_PTR - && TYPE_TARGET_TYPE (type)->code () == TYPE_CODE_FUNC) + && type->target_type ()->code () == TYPE_CODE_FUNC) { gdb_byte val_buf[8]; ULONGEST faddr = extract_unsigned_integer -- cgit v1.1