aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2003-06-09 17:41:21 +0000
committerMark Kettenis <kettenis@gnu.org>2003-06-09 17:41:21 +0000
commitcbbfbeb54c1069b1d262c4511f811f03248a4bbe (patch)
treebe8e7c160109c40ab1921ec9ec22eca3297b8209 /gdb
parentd7dbef210b929eda87140afc70d650b0705d592e (diff)
downloadgdb-cbbfbeb54c1069b1d262c4511f811f03248a4bbe.zip
gdb-cbbfbeb54c1069b1d262c4511f811f03248a4bbe.tar.gz
gdb-cbbfbeb54c1069b1d262c4511f811f03248a4bbe.tar.bz2
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog3
-rw-r--r--gdb/valops.c5
2 files changed, 5 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 5666ce2..6064363 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,8 @@
2003-06-09 Mark Kettenis <kettenis@gnu.org>
+ * valops.c (value_assign): Assign contents of FROMVAL instead of
+ TOVAL.
+
* i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
I386_EDI_REGNUM): New defines.
(i386_next_regnum, i386_convert_register_p,
diff --git a/gdb/valops.c b/gdb/valops.c
index f4406ad..6d69500 100644
--- a/gdb/valops.c
+++ b/gdb/valops.c
@@ -588,13 +588,12 @@ value_assign (struct value *toval, struct value *fromval)
error ("Value being assigned to is no longer active.");
if (VALUE_LVAL (toval) == lval_reg_frame_relative
- && CONVERT_REGISTER_P (VALUE_FRAME_REGNUM (toval),
- VALUE_TYPE (toval)))
+ && CONVERT_REGISTER_P (VALUE_FRAME_REGNUM (toval), type))
{
/* If TOVAL is a special machine register requiring
conversion of program values to a special raw format. */
VALUE_TO_REGISTER (frame, VALUE_FRAME_REGNUM (toval),
- VALUE_TYPE (toval), VALUE_CONTENTS (toval));
+ type, VALUE_CONTENTS (fromval));
}
else
{