* corefile.c (write_memory): Remove unnecessary copying.
This commit is contained in:
parent
5d6fa95086
commit
00630ca836
@ -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.
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user