aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386m3-nat.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/i386m3-nat.c')
-rw-r--r--gdb/i386m3-nat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/i386m3-nat.c b/gdb/i386m3-nat.c
index 2ab37c5..7f1d47b 100644
--- a/gdb/i386m3-nat.c
+++ b/gdb/i386m3-nat.c
@@ -87,13 +87,13 @@ static int reg_offset[] =
#define FETCH_REGS(state, regnum, count) \
memcpy (&registers[REGISTER_BYTE (regnum)], \
REG_ADDRESS (state, 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 (REG_ADDRESS (state, regnum), \
&registers[REGISTER_BYTE (regnum)], \
- count*sizeof (REGISTER_TYPE))
+ count*REGISTER_SIZE)
/*
* Fetch inferiors registers for gdb.