aboutsummaryrefslogtreecommitdiff
path: root/gdb/rs6000-aix-tdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/rs6000-aix-tdep.c')
-rw-r--r--gdb/rs6000-aix-tdep.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/rs6000-aix-tdep.c b/gdb/rs6000-aix-tdep.c
index 86270c8..1a6bb50 100644
--- a/gdb/rs6000-aix-tdep.c
+++ b/gdb/rs6000-aix-tdep.c
@@ -351,7 +351,7 @@ rs6000_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
arg = args[argno];
type = check_typedef (value_type (arg));
- len = TYPE_LENGTH (type);
+ len = type->length ();
if (type->code () == TYPE_CODE_FLT)
{
@@ -439,7 +439,7 @@ ran_out_of_registers_for_arguments:
for (; jj < nargs; ++jj)
{
struct value *val = args[jj];
- space += ((TYPE_LENGTH (value_type (val))) + 3) & -4;
+ space += ((value_type (val)->length ()) + 3) & -4;
}
/* Add location required for the rest of the parameters. */
@@ -473,7 +473,7 @@ ran_out_of_registers_for_arguments:
arg = args[argno];
type = check_typedef (value_type (arg));
- len = TYPE_LENGTH (type);
+ len = type->length ();
/* Float types should be passed in fpr's, as well as in the
@@ -533,7 +533,7 @@ rs6000_return_value (struct gdbarch *gdbarch, struct value *function,
/* AltiVec extension: Functions that declare a vector data type as a
return value place that return value in VR2. */
if (valtype->code () == TYPE_CODE_ARRAY && valtype->is_vector ()
- && TYPE_LENGTH (valtype) == 16)
+ && valtype->length () == 16)
{
if (readbuf)
regcache->cooked_read (tdep->ppc_vr0_regnum + 2, readbuf);
@@ -558,7 +558,7 @@ rs6000_return_value (struct gdbarch *gdbarch, struct value *function,
complex*8 and complex*16 are returned in FPR1:FPR2, and
complex*32 is returned in FPR1:FPR4. */
if (valtype->code () == TYPE_CODE_FLT
- && (TYPE_LENGTH (valtype) == 4 || TYPE_LENGTH (valtype) == 8))
+ && (valtype->length () == 4 || valtype->length () == 8))
{
struct type *regtype = register_type (gdbarch, tdep->ppc_fp0_regnum);
gdb_byte regval[8];
@@ -585,7 +585,7 @@ rs6000_return_value (struct gdbarch *gdbarch, struct value *function,
lengths less than or equal to 32 bits, must be returned right
justified in GPR3 with signed values sign extended and unsigned
values zero extended, as necessary. */
- if (TYPE_LENGTH (valtype) <= tdep->wordsize)
+ if (valtype->length () <= tdep->wordsize)
{
if (readbuf)
{
@@ -594,7 +594,7 @@ rs6000_return_value (struct gdbarch *gdbarch, struct value *function,
/* For reading we don't have to worry about sign extension. */
regcache_cooked_read_unsigned (regcache, tdep->ppc_gp0_regnum + 3,
&regval);
- store_unsigned_integer (readbuf, TYPE_LENGTH (valtype), byte_order,
+ store_unsigned_integer (readbuf, valtype->length (), byte_order,
regval);
}
if (writebuf)
@@ -611,7 +611,7 @@ rs6000_return_value (struct gdbarch *gdbarch, struct value *function,
/* Eight-byte non-floating-point scalar values must be returned in
GPR3:GPR4. */
- if (TYPE_LENGTH (valtype) == 8)
+ if (valtype->length () == 8)
{
gdb_assert (valtype->code () != TYPE_CODE_FLT);
gdb_assert (tdep->wordsize == 4);