aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-10-25 21:15:53 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-10-25 21:15:53 +0000
commita6e0dae9c3decfe89c70f020c048bc132bfa54a2 (patch)
treebd8dbf95da1b1d46a60b020b72ac4fe72b418b2c /gdb/gdbserver
parent59168c8b053591d680fdef52b1178ce9bd54f45e (diff)
downloadgdb-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')
-rw-r--r--gdb/gdbserver/low-lynx.c4
-rw-r--r--gdb/gdbserver/low-sparc.c2
-rw-r--r--gdb/gdbserver/low-sun3.c18
3 files changed, 13 insertions, 11 deletions
diff --git a/gdb/gdbserver/low-lynx.c b/gdb/gdbserver/low-lynx.c
index 44070c5..ae4955c 100644
--- a/gdb/gdbserver/low-lynx.c
+++ b/gdb/gdbserver/low-lynx.c
@@ -283,7 +283,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
@@ -320,7 +320,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. */
diff --git a/gdb/gdbserver/low-sparc.c b/gdb/gdbserver/low-sparc.c
index eb578ee..8fb3f70 100644
--- a/gdb/gdbserver/low-sparc.c
+++ b/gdb/gdbserver/low-sparc.c
@@ -261,7 +261,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
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 (&registers[REGISTER_BYTE (FP0_REGNUM)], &inferior_fp_registers,
- sizeof inferior_fp_registers.fps_regs);
+ memcpy (&inferior_fp_registers,
+ &registers[REGISTER_BYTE (FP0_REGNUM)],
+ sizeof inferior_fp_registers.fps_regs);
#endif
inferior_registers.r_ps = *(int *)&registers[REGISTER_BYTE (PS_REGNUM)];
inferior_registers.r_pc = *(int *)&registers[REGISTER_BYTE (PC_REGNUM)];
#ifdef FP0_REGNUM
- bcopy (&registers[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,
+ &registers[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. */