]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* i387-tdep.c (print_i387_value): Cast &value to (char *) in
authorMark Kettenis <kettenis@gnu.org>
Sun, 21 May 2000 21:31:10 +0000 (21:31 +0000)
committerMark Kettenis <kettenis@gnu.org>
Sun, 21 May 2000 21:31:10 +0000 (21:31 +0000)
pointer arithmetic.  Fixes a bug which manifested itself on
FreeBSD.

gdb/ChangeLog
gdb/i387-tdep.c

index 8230c1a056c41a85212bef8a774de9f88c390262..23524d8255bdac5875991cb3a4816ea91a24ad45 100644 (file)
@@ -1,3 +1,9 @@
+2000-05-21  Mark Kettenis  <kettenis@gnu.org>
+
+       * i387-tdep.c (print_i387_value): Cast &value to (char *) in
+       pointer arithmetic.  Fixes a bug which manifested itself on
+       FreeBSD.
+
 2000-05-17  Andrew Cagney  <cagney@sourceware.cygnus.com>
 
        * GDB 5.0 released.
index f887da95b2617a77819b380c9249f03dee225e29..f56b3d01a3a60a892c939f5811bf6010255f8b6f 100644 (file)
@@ -176,7 +176,8 @@ print_i387_value (char *raw)
     {
       /* Copy straight over, but take care of the padding.  */
       memcpy (&value, raw, FPU_REG_RAW_SIZE);
-      memset (&value + FPU_REG_RAW_SIZE, 0, sizeof (value) - FPU_REG_RAW_SIZE);
+      memset ((char *) &value + FPU_REG_RAW_SIZE, 0,
+             sizeof (value) - FPU_REG_RAW_SIZE);
     }
   else
 #endif