From 954b50b3ed164fe06c2c1a408cbec4862a8491bb Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 5 Nov 2012 21:43:12 +0000 Subject: [PATCH] * frame.c (put_frame_register): Don't use temporary buffer. --- gdb/ChangeLog | 4 ++++ gdb/frame.c | 7 +------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index baf3e715299..2ccadac5e98 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2012-11-05 Tom Tromey + + * frame.c (put_frame_register): Don't use temporary buffer. + 2012-11-05 Pedro Alves * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork diff --git a/gdb/frame.c b/gdb/frame.c index a2f23a49343..71f0ba44bbb 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: -- 2.30.2