aboutsummaryrefslogtreecommitdiff
path: root/gdb/m68k-bsd-tdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/m68k-bsd-tdep.c')
-rw-r--r--gdb/m68k-bsd-tdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/m68k-bsd-tdep.c b/gdb/m68k-bsd-tdep.c
index 2614c22..b4d991c 100644
--- a/gdb/m68k-bsd-tdep.c
+++ b/gdb/m68k-bsd-tdep.c
@@ -41,7 +41,7 @@
int
m68kbsd_fpreg_offset (struct gdbarch *gdbarch, int regnum)
{
- int fp_len = TYPE_LENGTH (gdbarch_register_type (gdbarch, regnum));
+ int fp_len = gdbarch_register_type (gdbarch, regnum)->length ();
if (regnum >= M68K_FPC_REGNUM)
return 8 * fp_len + (regnum - M68K_FPC_REGNUM) * 4;