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/guile/scm-value.c | |
parent | 8a50fdcefc44c40d5c4b978f19c22ddfbeb29139 (diff) | |
download | binutils-27710edb4e588d0360620df424dd7ee7e8cfafee.zip binutils-27710edb4e588d0360620df424dd7ee7e8cfafee.tar.gz binutils-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/guile/scm-value.c')
-rw-r--r-- | gdb/guile/scm-value.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/guile/scm-value.c b/gdb/guile/scm-value.c index 1c88a3a..4417c2d 100644 --- a/gdb/guile/scm-value.c +++ b/gdb/guile/scm-value.c @@ -576,7 +576,7 @@ gdbscm_value_dynamic_type (SCM self) if (((type->code () == TYPE_CODE_PTR) || (type->code () == TYPE_CODE_REF)) - && (TYPE_TARGET_TYPE (type)->code () == TYPE_CODE_STRUCT)) + && (type->target_type ()->code () == TYPE_CODE_STRUCT)) { struct value *target; int was_pointer = type->code () == TYPE_CODE_PTR; @@ -1181,7 +1181,7 @@ gdbscm_value_to_lazy_string (SCM self, SCM rest) length = array_length; else if (array_length == -1) { - type = lookup_array_range_type (TYPE_TARGET_TYPE (realtype), + type = lookup_array_range_type (realtype->target_type (), 0, length - 1); } else if (length != array_length) @@ -1190,7 +1190,7 @@ gdbscm_value_to_lazy_string (SCM self, SCM rest) specified length. */ if (length > array_length) error (_("length is larger than array size")); - type = lookup_array_range_type (TYPE_TARGET_TYPE (type), + type = lookup_array_range_type (type->target_type (), low_bound, low_bound + length - 1); } |