aboutsummaryrefslogtreecommitdiff
path: root/gdb/iq2000-tdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/iq2000-tdep.c')
-rw-r--r--gdb/iq2000-tdep.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/gdb/iq2000-tdep.c b/gdb/iq2000-tdep.c
index 3852195..236362c 100644
--- a/gdb/iq2000-tdep.c
+++ b/gdb/iq2000-tdep.c
@@ -91,7 +91,7 @@ iq2000_pointer_to_address (struct gdbarch *gdbarch,
enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
enum type_code target = type->target_type ()->code ();
CORE_ADDR addr
- = extract_unsigned_integer (buf, TYPE_LENGTH (type), byte_order);
+ = extract_unsigned_integer (buf, type->length (), byte_order);
if (target == TYPE_CODE_FUNC
|| target == TYPE_CODE_METHOD
@@ -113,7 +113,7 @@ iq2000_address_to_pointer (struct gdbarch *gdbarch,
if (target == TYPE_CODE_FUNC || target == TYPE_CODE_METHOD)
addr = insn_ptr_from_addr (addr);
- store_unsigned_integer (buf, TYPE_LENGTH (type), byte_order, addr);
+ store_unsigned_integer (buf, type->length (), byte_order, addr);
}
/* Real register methods: */
@@ -482,7 +482,7 @@ static void
iq2000_store_return_value (struct type *type, struct regcache *regcache,
const void *valbuf)
{
- int len = TYPE_LENGTH (type);
+ int len = type->length ();
int regno = E_FN_RETURN_REGNUM;
while (len > 0)
@@ -507,7 +507,7 @@ iq2000_use_struct_convention (struct type *type)
{
return ((type->code () == TYPE_CODE_STRUCT)
|| (type->code () == TYPE_CODE_UNION))
- && TYPE_LENGTH (type) > 8;
+ && type->length () > 8;
}
/* Function: extract_return_value
@@ -528,7 +528,7 @@ iq2000_extract_return_value (struct type *type, struct regcache *regcache,
returned in a register, and if larger than 8 bytes, it is
returned in a stack location which is pointed to by the same
register. */
- int len = TYPE_LENGTH (type);
+ int len = type->length ();
if (len <= (2 * 4))
{
@@ -556,7 +556,7 @@ iq2000_extract_return_value (struct type *type, struct regcache *regcache,
ULONGEST return_buffer;
regcache_cooked_read_unsigned (regcache, E_FN_RETURN_REGNUM,
&return_buffer);
- read_memory (return_buffer, valbuf, TYPE_LENGTH (type));
+ read_memory (return_buffer, valbuf, type->length ());
}
}
@@ -610,7 +610,7 @@ iq2000_pass_8bytetype_by_address (struct type *type)
/* Get field type. */
ftype = type->field (0).type ();
/* The field type must have size 8, otherwise pass by address. */
- if (TYPE_LENGTH (ftype) != 8)
+ if (ftype->length () != 8)
return 1;
/* Skip typedefs of field type. */
while (ftype->code () == TYPE_CODE_TYPEDEF)
@@ -645,7 +645,7 @@ iq2000_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
i++)
{
type = value_type (args[i]);
- typelen = TYPE_LENGTH (type);
+ typelen = type->length ();
if (typelen <= 4)
{
/* Scalars of up to 4 bytes,
@@ -711,7 +711,7 @@ iq2000_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
for (i = 0; i < nargs; i++)
{
type = value_type (args[i]);
- typelen = TYPE_LENGTH (type);
+ typelen = type->length ();
val = value_contents (args[i]).data ();
if (typelen <= 4)
{