diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-10-25 21:15:53 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-10-25 21:15:53 +0000 |
commit | a6e0dae9c3decfe89c70f020c048bc132bfa54a2 (patch) | |
tree | bd8dbf95da1b1d46a60b020b72ac4fe72b418b2c /gdb/gdbserver/low-sun3.c | |
parent | 59168c8b053591d680fdef52b1178ce9bd54f45e (diff) | |
download | gdb-a6e0dae9c3decfe89c70f020c048bc132bfa54a2.zip gdb-a6e0dae9c3decfe89c70f020c048bc132bfa54a2.tar.gz gdb-a6e0dae9c3decfe89c70f020c048bc132bfa54a2.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/gdbserver/low-sun3.c')
-rw-r--r-- | gdb/gdbserver/low-sun3.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/gdb/gdbserver/low-sun3.c b/gdb/gdbserver/low-sun3.c index c318ff5..7b630a9 100644 --- a/gdb/gdbserver/low-sun3.c +++ b/gdb/gdbserver/low-sun3.c @@ -186,18 +186,20 @@ store_inferior_registers (ignored) struct regs inferior_registers; struct fp_status inferior_fp_registers; - bcopy (registers, &inferior_registers, 16 * 4); + memcpy (&inferior_registers, registers, 16 * 4); #ifdef FP0_REGNUM - bcopy (®isters[REGISTER_BYTE (FP0_REGNUM)], &inferior_fp_registers, - sizeof inferior_fp_registers.fps_regs); + memcpy (&inferior_fp_registers, + ®isters[REGISTER_BYTE (FP0_REGNUM)], + sizeof inferior_fp_registers.fps_regs); #endif inferior_registers.r_ps = *(int *)®isters[REGISTER_BYTE (PS_REGNUM)]; inferior_registers.r_pc = *(int *)®isters[REGISTER_BYTE (PC_REGNUM)]; #ifdef FP0_REGNUM - bcopy (®isters[REGISTER_BYTE (FPC_REGNUM)], - &inferior_fp_registers.fps_control, - sizeof inferior_fp_registers - sizeof inferior_fp_registers.fps_regs); + memcpy (&inferior_fp_registers.fps_control, + ®isters[REGISTER_BYTE (FPC_REGNUM)], + (sizeof inferior_fp_registers + - sizeof inferior_fp_registers.fps_regs)); #endif ptrace (PTRACE_SETREGS, inferior_pid, @@ -238,7 +240,7 @@ read_inferior_memory (memaddr, myaddr, len) } /* Copy appropriate bytes out of the buffer. */ - bcopy ((char *) buffer + (memaddr & (sizeof (int) - 1)), myaddr, len); + memcpy (myaddr, (char *) buffer + (memaddr & (sizeof (int) - 1)), len); } /* Copy LEN bytes of data from debugger memory at MYADDR @@ -275,7 +277,7 @@ write_inferior_memory (memaddr, myaddr, len) /* Copy data to be written over corresponding part of buffer */ - bcopy (myaddr, (char *) buffer + (memaddr & (sizeof (int) - 1)), len); + memcpy ((char *) buffer + (memaddr & (sizeof (int) - 1)), myaddr, len); /* Write the entire buffer. */ |