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/value.c | |
parent | 8a50fdcefc44c40d5c4b978f19c22ddfbeb29139 (diff) | |
download | fsf-binutils-gdb-27710edb4e588d0360620df424dd7ee7e8cfafee.zip fsf-binutils-gdb-27710edb4e588d0360620df424dd7ee7e8cfafee.tar.gz fsf-binutils-gdb-27710edb4e588d0360620df424dd7ee7e8cfafee.tar.bz2 |
gdb: remove TYPE_TARGET_TYPE
Remove the macro, replace all uses by calls to type::target_type.
Change-Id: Ie51d3e1e22f94130176d6abd723255282bb6d1ed
Diffstat (limited to 'gdb/value.c')
-rw-r--r-- | gdb/value.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/value.c b/gdb/value.c index 557e221..48db5b0 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -1199,7 +1199,7 @@ value_actual_type (struct value *value, int resolve_simple_types, /* If result's target type is TYPE_CODE_STRUCT, proceed to fetch its rtti type. */ if (result->is_pointer_or_reference () - && (check_typedef (TYPE_TARGET_TYPE (result))->code () + && (check_typedef (result->target_type ())->code () == TYPE_CODE_STRUCT) && !value_optimized_out (value)) { @@ -3802,7 +3802,7 @@ readjust_indirect_value_type (struct value *value, struct type *enc_type, { gdb_assert (original_type->is_pointer_or_reference ()); - struct type *original_target_type = TYPE_TARGET_TYPE (original_type); + struct type *original_target_type = original_type->target_type (); gdb::array_view<const gdb_byte> view; struct type *resolved_original_target_type = resolve_dynamic_type (original_target_type, view, @@ -3834,7 +3834,7 @@ coerce_ref (struct value *arg) return arg; enc_type = check_typedef (value_enclosing_type (arg)); - enc_type = TYPE_TARGET_TYPE (enc_type); + enc_type = enc_type->target_type (); CORE_ADDR addr = unpack_pointer (value_type (arg), value_contents (arg).data ()); retval = value_at_lazy (enc_type, addr); |