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