diff options
author | Doug Evans <dje@google.com> | 2008-09-12 20:40:57 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2008-09-12 20:40:57 +0000 |
commit | 00630ca836f7d3fcf90d78084cae1310c6fba854 (patch) | |
tree | 854d1455dccf181dad6ec47786fdeeb8ee663dbe /gdb/corefile.c | |
parent | 5d6fa95086bc3c3f346a85ea220bd744fc773594 (diff) | |
download | binutils-gdb-00630ca836f7d3fcf90d78084cae1310c6fba854.tar.gz |
* corefile.c (write_memory): Remove unnecessary copying.
Diffstat (limited to 'gdb/corefile.c')
-rw-r--r-- | gdb/corefile.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gdb/corefile.c b/gdb/corefile.c index 726d9fcc5fa..2be4e260f5b 100644 --- a/gdb/corefile.c +++ b/gdb/corefile.c @@ -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); } |