* corefile.c (write_memory): Remove unnecessary copying.

This commit is contained in:
Doug Evans
2008-09-12 20:40:57 +00:00
parent 5d6fa95086
commit 00630ca836
2 changed files with 3 additions and 4 deletions

View File

@ -350,10 +350,7 @@ void
write_memory (CORE_ADDR memaddr, const bfd_byte *myaddr, int len)
{
int status;
gdb_byte *bytes = alloca (len);
memcpy (bytes, myaddr, len);
status = target_write_memory (memaddr, bytes, len);
status = target_write_memory (memaddr, myaddr, len);
if (status != 0)
memory_error (status, memaddr);
}