aboutsummaryrefslogtreecommitdiff
path: root/gdb/rs6000-nat.c
diff options
context:
space:
mode:
authorK. Richard Pixley <rich@cygnus>1993-09-01 20:37:15 +0000
committerK. Richard Pixley <rich@cygnus>1993-09-01 20:37:15 +0000
commitade40d3153e344521d48bddf744bc2b8a1792d06 (patch)
tree318ffdf6c80d39146d86792845cb02d36260e9d9 /gdb/rs6000-nat.c
parente96d50d03cdcd0629a93898ab7a740e98cdc7f86 (diff)
downloadgdb-ade40d3153e344521d48bddf744bc2b8a1792d06.zip
gdb-ade40d3153e344521d48bddf744bc2b8a1792d06.tar.gz
gdb-ade40d3153e344521d48bddf744bc2b8a1792d06.tar.bz2
bcopy -> memcpy
Diffstat (limited to 'gdb/rs6000-nat.c')
-rw-r--r--gdb/rs6000-nat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/rs6000-nat.c b/gdb/rs6000-nat.c
index c80f70e..f9f322e 100644
--- a/gdb/rs6000-nat.c
+++ b/gdb/rs6000-nat.c
@@ -228,20 +228,20 @@ fetch_core_registers (core_reg_sect, core_reg_size, which, reg_addr)
if (which == 0) {
/* copy GPRs first. */
- bcopy (core_reg_sect, registers, 32 * 4);
+ memcpy (registers, core_reg_sect, 32 * 4);
/* gdb's internal register template and bfd's register section layout
should share a common include file. FIXMEmgo */
/* then comes special registes. They are supposed to be in the same
order in gdb template and bfd `.reg' section. */
core_reg_sect += (32 * 4);
- bcopy (core_reg_sect, &registers [REGISTER_BYTE (FIRST_SP_REGNUM)],
+ memcpy (&registers [REGISTER_BYTE (FIRST_SP_REGNUM)], core_reg_sect,
(LAST_SP_REGNUM - FIRST_SP_REGNUM + 1) * 4);
}
/* fetch floating point registers from register section 2 in core bfd. */
else if (which == 2)
- bcopy (core_reg_sect, &registers [REGISTER_BYTE (FP0_REGNUM)], 32 * 8);
+ memcpy (&registers [REGISTER_BYTE (FP0_REGNUM)], core_reg_sect, 32 * 8);
else
fprintf (stderr, "Gdb error: unknown parameter to fetch_core_registers().\n");