]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
authorMark Kettenis <kettenis@gnu.org>
Sun, 18 Aug 2002 17:18:45 +0000 (17:18 +0000)
committerMark Kettenis <kettenis@gnu.org>
Sun, 18 Aug 2002 17:18:45 +0000 (17:18 +0000)
write_register_gen instead of write_register_bytes.

gdb/ChangeLog
gdb/i386-tdep.c

index c9b4310d9492c46269f2284e53d17bd36962b000..7cf29c8e98c6e21db073bc6edcf5f5ce52b47482 100644 (file)
@@ -1,5 +1,8 @@
 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
 
+       * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
+       write_register_gen instead of write_register_bytes.
+
        * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
        i[3456]-*-osf1mk* configurations have been made obsolete.
        * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
index bd4eb9e76120adfa1da8543727f08ed3c02e0cb5..42301367e507f33fdcbebc7c5c4942a02d46ca66 100644 (file)
@@ -833,8 +833,7 @@ i386_do_pop_frame (struct frame_info *frame)
       if (addr)
        {
          read_memory (addr, regbuf, REGISTER_RAW_SIZE (regnum));
-         write_register_bytes (REGISTER_BYTE (regnum), regbuf,
-                               REGISTER_RAW_SIZE (regnum));
+         write_register_gen (regnum, regbuf);
        }
     }
   write_register (FP_REGNUM, read_memory_integer (fp, 4));
@@ -1003,8 +1002,7 @@ i386_store_return_value (struct type *type, char *valbuf)
         not exactly how it would happen on the target itself, but
         it is the best we can do.  */
       convert_typed_floating (valbuf, type, buf, builtin_type_i387_ext);
-      write_register_bytes (REGISTER_BYTE (FP0_REGNUM), buf,
-                           FPU_REG_RAW_SIZE);
+      write_register_gen (FP0_REGNUM, buf);
 
       /* Set the top of the floating-point register stack to 7.  The
          actual value doesn't really matter, but 7 is what a normal