summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2000-05-21 21:31:10 +0000
committerMark Kettenis <kettenis@gnu.org>2000-05-21 21:31:10 +0000
commit557cf188478da383a89169e357c5aeb7690f2c62 (patch)
tree225b3cb664ac3edb029bf4e40b9a0df4499c1877
parentdd749b3ecbf4e2feb548e8a6c876f9e56b2e8200 (diff)
downloadgdb-557cf188478da383a89169e357c5aeb7690f2c62.tar.gz
* i387-tdep.c (print_i387_value): Cast &value to (char *) in
pointer arithmetic. Fixes a bug which manifested itself on FreeBSD.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/i387-tdep.c3
2 files changed, 8 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 8230c1a056c..23524d8255b 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
diff --git a/gdb/i387-tdep.c b/gdb/i387-tdep.c
index f887da95b26..f56b3d01a3a 100644
--- a/gdb/i387-tdep.c
+++ b/gdb/i387-tdep.c
@@ -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