aboutsummaryrefslogtreecommitdiff
path: root/gdb/m88k-nat.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/m88k-nat.c')
-rw-r--r--gdb/m88k-nat.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/m88k-nat.c b/gdb/m88k-nat.c
index b574651..b16c523 100644
--- a/gdb/m88k-nat.c
+++ b/gdb/m88k-nat.c
@@ -211,7 +211,8 @@ m88k_register_u_addr (blockend, regnum)
case 28:
case 29:
case 30:
- case 31: return (ustart + ((int) &u.pt_r0 - (int) &u) + sizeof(REGISTER_TYPE) * regnum);
+ case 31:
+ return (ustart + ((int) &u.pt_r0 - (int) &u) + REGISTER_SIZE * regnum);
case PSR_REGNUM: return (ustart + ((int) &u.pt_psr - (int) &u));
case FPSR_REGNUM: return (ustart + ((int) &u.pt_fpsr - (int) &u));
case FPCR_REGNUM: return (ustart + ((int) &u.pt_fpcr - (int) &u));
@@ -224,7 +225,7 @@ m88k_register_u_addr (blockend, regnum)
give it zero */
return (ustart + ((int) &u.pt_r0 - (int) &u));
else
- return (blockend + sizeof (REGISTER_TYPE) * regnum);
+ return (blockend + REGISTER_SIZE * regnum);
}
}