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/go-valprint.c | |
parent | 8a50fdcefc44c40d5c4b978f19c22ddfbeb29139 (diff) | |
download | binutils-gdb-27710edb4e588d0360620df424dd7ee7e8cfafee.tar.gz |
gdb: remove TYPE_TARGET_TYPE
Remove the macro, replace all uses by calls to type::target_type.
Change-Id: Ie51d3e1e22f94130176d6abd723255282bb6d1ed
Diffstat (limited to 'gdb/go-valprint.c')
-rw-r--r-- | gdb/go-valprint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/go-valprint.c b/gdb/go-valprint.c index 45bd529ba95..e104376b49b 100644 --- a/gdb/go-valprint.c +++ b/gdb/go-valprint.c @@ -45,7 +45,7 @@ print_go_string (struct type *type, { struct gdbarch *gdbarch = type->arch (); struct type *elt_ptr_type = type->field (0).type (); - struct type *elt_type = TYPE_TARGET_TYPE (elt_ptr_type); + struct type *elt_type = elt_ptr_type->target_type (); LONGEST length; /* TODO(dje): The encapsulation of what a pointer is belongs in value.c. I.e. If there's going to be unpack_pointer, there should be |