aboutsummaryrefslogtreecommitdiff
path: root/gdb/m3-nat.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/m3-nat.c')
-rw-r--r--gdb/m3-nat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/m3-nat.c b/gdb/m3-nat.c
index 66a21e5..fcb7b20 100644
--- a/gdb/m3-nat.c
+++ b/gdb/m3-nat.c
@@ -1798,7 +1798,7 @@ mach3_read_inferior (addr, myaddr, length)
}
}
- bcopy ((char *)addr - low_address + copied_memory, myaddr, length);
+ memcpy (myaddr, (char *)addr - low_address + copied_memory, length);
ret = vm_deallocate (mach_task_self (),
copied_memory,
@@ -1858,7 +1858,7 @@ mach3_write_inferior (addr, myaddr, length)
deallocate++;
- bcopy (myaddr, (char *)addr - low_address + copied_memory, length);
+ memcpy ((char *)addr - low_address + copied_memory, myaddr, length);
obstack_init (&region_obstack);