aboutsummaryrefslogtreecommitdiff
path: root/gdb/gnu-v2-abi.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2022-07-30 22:43:54 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2022-09-21 10:59:49 -0400
commit27710edb4e588d0360620df424dd7ee7e8cfafee (patch)
treeaf4da9f4c7e032ab6653536f2a991cbe09cee759 /gdb/gnu-v2-abi.c
parent8a50fdcefc44c40d5c4b978f19c22ddfbeb29139 (diff)
downloadfsf-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/gnu-v2-abi.c')
-rw-r--r--gdb/gnu-v2-abi.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/gnu-v2-abi.c b/gdb/gnu-v2-abi.c
index 3c4430d..dd55069 100644
--- a/gdb/gnu-v2-abi.c
+++ b/gdb/gnu-v2-abi.c
@@ -108,7 +108,7 @@ gnuv2_virtual_fn_field (struct value **arg1p, struct fn_field * f, int j,
fcontext = TYPE_VPTR_BASETYPE (type);
context = lookup_pointer_type (fcontext);
/* Now context is a pointer to the basetype containing the vtbl. */
- if (TYPE_TARGET_TYPE (context) != type1)
+ if (context->target_type () != type1)
{
struct value *tmp = value_cast (context, value_addr (arg1));
@@ -133,7 +133,7 @@ gnuv2_virtual_fn_field (struct value **arg1p, struct fn_field * f, int j,
/* With older versions of g++, the vtbl field pointed to an array
of structures. Nowadays it points directly to the structure. */
if (value_type (vtbl)->code () == TYPE_CODE_PTR
- && TYPE_TARGET_TYPE (value_type (vtbl))->code () == TYPE_CODE_ARRAY)
+ && value_type (vtbl)->target_type ()->code () == TYPE_CODE_ARRAY)
{
/* Handle the case where the vtbl field points to an
array of structures. */
@@ -323,13 +323,13 @@ vb_match (struct type *type, int index, struct type *basetype)
nameless types) or have the same name. This is ugly, and a more
elegant solution should be devised (which would probably just push
the ugliness into symbol reading unless we change the stabs format). */
- if (TYPE_TARGET_TYPE (fieldtype) == basetype)
+ if (fieldtype->target_type () == basetype)
return 1;
if (basetype->name () != NULL
- && TYPE_TARGET_TYPE (fieldtype)->name () != NULL
+ && fieldtype->target_type ()->name () != NULL
&& strcmp (basetype->name (),
- TYPE_TARGET_TYPE (fieldtype)->name ()) == 0)
+ fieldtype->target_type ()->name ()) == 0)
return 1;
return 0;
}