aboutsummaryrefslogtreecommitdiff
path: root/gdb/mipsm3-nat.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/mipsm3-nat.c')
-rw-r--r--gdb/mipsm3-nat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/mipsm3-nat.c b/gdb/mipsm3-nat.c
index 34434a6..04f8139 100644
--- a/gdb/mipsm3-nat.c
+++ b/gdb/mipsm3-nat.c
@@ -122,13 +122,13 @@ static int reg_offset[] =
#define FETCH_REGS(state, regnum, count) \
memcpy (&registers[REGISTER_BYTE (regnum)], \
(char *)state+reg_offset[ regnum ], \
- count*sizeof (REGISTER_TYPE))
+ count*REGISTER_SIZE)
/* Store COUNT contiguous registers to thread STATE starting from REGNUM */
#define STORE_REGS(state, regnum, count) \
memcpy ((char *)state+reg_offset[ regnum ], \
&registers[REGISTER_BYTE (regnum)], \
- count*sizeof (REGISTER_TYPE))
+ count*REGISTER_SIZE)
#define REGS_ALL -1
#define REGS_NORMAL 1