]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* i386-tdep.c (i386_extract_return_value): Don't use bfd_byte.
authorMark Kettenis <kettenis@gnu.org>
Sun, 16 Nov 2003 10:43:07 +0000 (10:43 +0000)
committerMark Kettenis <kettenis@gnu.org>
Sun, 16 Nov 2003 10:43:07 +0000 (10:43 +0000)
gdb/ChangeLog
gdb/i386-tdep.c

index cfb4a6b6ab73b301302289c2da635c532f138d0d..611839d623750b65e35347eec78534bf7abf5925 100644 (file)
@@ -1,3 +1,7 @@
+2003-11-16  Mark Kettenis  <kettenis@gnu.org>
+
+       * i386-tdep.c (i386_extract_return_value): Don't use bfd_byte.
+
 2003-11-16  Andrew Cagney  <cagney@redhat.com>
 
        * config/mips/linux64.mt: Delete file.
index 69db1fa820e45e8c3a6d16470df5347db6b8c6ea..8b339ce092559567a4da054b51f46002b107d75e 100644 (file)
@@ -1157,10 +1157,9 @@ i386_push_dummy_call (struct gdbarch *gdbarch, CORE_ADDR func_addr,
 
 static void
 i386_extract_return_value (struct type *type, struct regcache *regcache,
-                          void *dst)
+                          void *valbuf)
 {
   struct gdbarch_tdep *tdep = gdbarch_tdep (get_regcache_arch (regcache));
-  bfd_byte *valbuf = dst;
   int len = TYPE_LENGTH (type);
   char buf[I386_MAX_REGISTER_SIZE];
 
@@ -1202,7 +1201,7 @@ i386_extract_return_value (struct type *type, struct regcache *regcache,
          regcache_raw_read (regcache, LOW_RETURN_REGNUM, buf);
          memcpy (valbuf, buf, low_size);
          regcache_raw_read (regcache, HIGH_RETURN_REGNUM, buf);
-         memcpy (valbuf + low_size, buf, len - low_size);
+         memcpy ((char *) valbuf + low_size, buf, len - low_size);
        }
       else
        internal_error (__FILE__, __LINE__,