* 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

@ -1,5 +1,7 @@
2008-09-12 Doug Evans <dje@google.com>
* corefile.c (write_memory): Remove unnecessary copying.
* sol-thread.c (_initialize_sol_thread): Add FIXME regarding
order of _initialize_* fns.

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);
}