]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
TOVAL. cagney_convert-20030606-branch
authorMark Kettenis <kettenis@gnu.org>
Mon, 9 Jun 2003 17:41:21 +0000 (17:41 +0000)
committerMark Kettenis <kettenis@gnu.org>
Mon, 9 Jun 2003 17:41:21 +0000 (17:41 +0000)
gdb/ChangeLog
gdb/valops.c

index 5666ce21a65de743a34aad28a1e102d3dc2471bb..60643636cefbe00fd9eac7622beb67aa8f45e6ad 100644 (file)
@@ -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,
index f4406adcc17899bcbf2174337051e92c1770a0b5..6d695000a8a12e42650fc6f033986155f1de1ab3 100644 (file)
@@ -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
          {