summaryrefslogtreecommitdiff
path: root/gdb/i387-tdep.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2000-05-21 21:21:20 +0000
committerMark Kettenis <kettenis@gnu.org>2000-05-21 21:21:20 +0000
commitb4befa8a868d95d92de6179ac16e74be3ae384ef (patch)
treea58b62ba3a37226cff938762713d017cf921aef9 /gdb/i387-tdep.c
parentfdceddded94f6b2db958840d54fdbd501d01dd7a (diff)
downloadgdb-b4befa8a868d95d92de6179ac16e74be3ae384ef.tar.gz
* i387-tdep.c (print_i387_value): Cast &value to (char *) in
pointer arithmetic. Fixes a bug which manifested itself on FreeBSD.
Diffstat (limited to 'gdb/i387-tdep.c')
-rw-r--r--gdb/i387-tdep.c3
1 files changed, 2 insertions, 1 deletions
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