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/go-lang.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/go-lang.c') diff --git a/gdb/go-lang.c b/gdb/go-lang.c index c56db23..92d7e60 100644 --- a/gdb/go-lang.c +++ b/gdb/go-lang.c @@ -86,7 +86,7 @@ gccgo_string_p (struct type *type) && type1->code () == TYPE_CODE_INT && strcmp (type->field (1).name (), "__length") == 0) { - struct type *target_type = TYPE_TARGET_TYPE (type0); + struct type *target_type = type0->target_type (); target_type = check_typedef (target_type); -- cgit v1.1