* frame.c (put_frame_register): Don't use temporary buffer.

This commit is contained in:
Tom Tromey 2012-11-05 21:43:12 +00:00
parent a481d14b47
commit 954b50b3ed
2 changed files with 5 additions and 6 deletions

View File

@ -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

View File

@ -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: