mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 06:45:56 +08:00
* corefile.c (write_memory): Remove unnecessary copying.
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user