aboutsummaryrefslogtreecommitdiff
path: root/gdb/z80-tdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/z80-tdep.c')
-rw-r--r--gdb/z80-tdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/z80-tdep.c b/gdb/z80-tdep.c
index 684f083..d30f230 100644
--- a/gdb/z80-tdep.c
+++ b/gdb/z80-tdep.c
@@ -522,7 +522,7 @@ z80_return_value (struct gdbarch *gdbarch, struct value *function,
gdb_byte *readbuf, const gdb_byte *writebuf)
{
/* Byte are returned in L, word in HL, dword in DEHL. */
- int len = TYPE_LENGTH (valtype);
+ int len = valtype->length ();
if ((valtype->code () == TYPE_CODE_STRUCT
|| valtype->code () == TYPE_CODE_UNION