mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 17:40:49 +00:00
* gdbserver/{low-lynx.c,low-sparc.c,low-sun3.c}, standalone.c,
m3-nat.c, i386m3-nat.c, mipsm3-nat.c, ns32km3-nat.c: bcopy -> memcpy.
This commit is contained in:
@@ -85,15 +85,15 @@ static int reg_offset[] =
|
||||
* Caller knows that the regs handled in one transaction are of same size.
|
||||
*/
|
||||
#define FETCH_REGS(state, regnum, count) \
|
||||
bcopy (REG_ADDRESS (state, regnum), \
|
||||
®isters[REGISTER_BYTE (regnum)], \
|
||||
count*sizeof (REGISTER_TYPE))
|
||||
memcpy (®isters[REGISTER_BYTE (regnum)], \
|
||||
REG_ADDRESS (state, regnum), \
|
||||
count*sizeof (REGISTER_TYPE))
|
||||
|
||||
/* Store COUNT contiguous registers to thread STATE starting from REGNUM */
|
||||
#define STORE_REGS(state, regnum, count) \
|
||||
bcopy (®isters[REGISTER_BYTE (regnum)], \
|
||||
REG_ADDRESS (state, regnum), \
|
||||
count*sizeof (REGISTER_TYPE))
|
||||
memcpy (REG_ADDRESS (state, regnum), \
|
||||
®isters[REGISTER_BYTE (regnum)], \
|
||||
count*sizeof (REGISTER_TYPE))
|
||||
|
||||
/*
|
||||
* Fetch inferiors registers for gdb.
|
||||
@@ -380,7 +380,7 @@ get_i387_state (fstate)
|
||||
|
||||
fstate->status = fsp->exc_status;
|
||||
|
||||
bcopy ((char *)&fsp->hw_state, fstate->state, FP_STATE_BYTES);
|
||||
memcpy (fstate->state, (char *)&fsp->hw_state, FP_STATE_BYTES);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user