diff options
author | Mark Kettenis <kettenis@gnu.org> | 2000-05-21 21:21:20 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2000-05-21 21:21:20 +0000 |
commit | e8475ad46302c0439093e9e25d631e56331f20e4 (patch) | |
tree | eb494c713248303b923f97016209a62b8f43587f /gdb/i387-tdep.c | |
parent | e80778cf3d9ba2660205117067d74bb61ba958ac (diff) | |
download | gdb-e8475ad46302c0439093e9e25d631e56331f20e4.zip gdb-e8475ad46302c0439093e9e25d631e56331f20e4.tar.gz gdb-e8475ad46302c0439093e9e25d631e56331f20e4.tar.bz2 |
* 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.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/i387-tdep.c b/gdb/i387-tdep.c index f887da9..f56b3d0 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 |