diff options
author | Tom Tromey <tromey@redhat.com> | 2012-11-05 21:43:12 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-11-05 21:43:12 +0000 |
commit | 954b50b3ed164fe06c2c1a408cbec4862a8491bb (patch) | |
tree | 6b72a37f9e22cdd7b60d19b9cb377f498adce236 /gdb | |
parent | a481d14b475fc061f97e377350aecfaf605da204 (diff) | |
download | gdb-954b50b3ed164fe06c2c1a408cbec4862a8491bb.zip gdb-954b50b3ed164fe06c2c1a408cbec4862a8491bb.tar.gz gdb-954b50b3ed164fe06c2c1a408cbec4862a8491bb.tar.bz2 |
* frame.c (put_frame_register): Don't use temporary buffer.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/frame.c | 7 |
2 files changed, 5 insertions, 6 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index baf3e71..2ccadac 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2012-11-05 Tom Tromey <tromey@redhat.com> + + * frame.c (put_frame_register): Don't use temporary buffer. + 2012-11-05 Pedro Alves <palves@redhat.com> * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork diff --git a/gdb/frame.c b/gdb/frame.c index a2f23a4..71f0ba4 100644 --- a/gdb/frame.c +++ b/gdb/frame.c @@ -1077,12 +1077,7 @@ put_frame_register (struct frame_info *frame, int regnum, { case lval_memory: { - /* FIXME: write_memory doesn't yet take constant buffers. - Arrrg! */ - gdb_byte tmp[MAX_REGISTER_SIZE]; - - memcpy (tmp, buf, register_size (gdbarch, regnum)); - write_memory (addr, tmp, register_size (gdbarch, regnum)); + write_memory (addr, buf, register_size (gdbarch, regnum)); break; } case lval_register: |