diff options
Diffstat (limited to 'gdb/infptrace.c')
-rw-r--r-- | gdb/infptrace.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/infptrace.c b/gdb/infptrace.c index 5246157..e9fa66d 100644 --- a/gdb/infptrace.c +++ b/gdb/infptrace.c @@ -395,7 +395,8 @@ child_xfer_memory (memaddr, myaddr, len, write, target) /* Copy data to be written over corresponding part of buffer */ - bcopy (myaddr, (char *) buffer + (memaddr & (sizeof (int) - 1)), len); + (void) memcpy ((char *) buffer + (memaddr & (sizeof (int) - 1)), myaddr, + len); /* Write the entire buffer. */ @@ -430,7 +431,8 @@ child_xfer_memory (memaddr, myaddr, len, write, target) } /* Copy appropriate bytes out of the buffer. */ - bcopy ((char *) buffer + (memaddr & (sizeof (int) - 1)), myaddr, len); + (void) memcpy (myaddr, (char *) buffer + (memaddr & (sizeof (int) - 1)), + len); } return len; } |