From: Mark Kettenis Date: Sat, 13 Jan 2007 19:44:42 +0000 (+0000) Subject: * frame.c (get_frame_register_bytes, put_frame_register_bytes): X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=765f065a9dae731250b3183b5ff20a7894c3e328;p=binutils-gdb.git * frame.c (get_frame_register_bytes, put_frame_register_bytes): Don't forget to move destination pointer. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 472e36edd99..678b9f6788c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2007-01-13 Mark Kettenis + + * frame.c (get_frame_register_bytes, put_frame_register_bytes): + Don't forget to move destination pointer. + 2007-01-01 Mark Kettenis * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove. diff --git a/gdb/frame.c b/gdb/frame.c index 93258d7720e..b32e0be112b 100644 --- a/gdb/frame.c +++ b/gdb/frame.c @@ -775,6 +775,7 @@ get_frame_register_bytes (struct frame_info *frame, int regnum, memcpy (myaddr, buf + offset, curr_len); } + myaddr += curr_len; len -= curr_len; offset = 0; regnum++; @@ -815,6 +816,7 @@ put_frame_register_bytes (struct frame_info *frame, int regnum, put_frame_register (frame, regnum, buf); } + myaddr += curr_len; len -= curr_len; offset = 0; regnum++;