aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/i387-tdep.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 1fb4efc..c240072 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2001-07-06 Michael Chastain <chastain@redhat.com>
+
+ * i387-tdep.c (print_i387_value): Fix pointer glitch.
+
2001-07-07 Mark Kettenis <kettenis@gnu.org>
* lin-lwp.c (count_events_callback): Fix formatting. Turn check
diff --git a/gdb/i387-tdep.c b/gdb/i387-tdep.c
index 71cb030c..66b6dc0 100644
--- a/gdb/i387-tdep.c
+++ b/gdb/i387-tdep.c
@@ -170,8 +170,8 @@ print_i387_value (char *raw)
/* Take care of the padding. FP reg is 80 bits. The same value in
memory is 96 bits. */
gdb_assert (FPU_REG_RAW_SIZE < len);
- memcpy (&tmp, raw, FPU_REG_RAW_SIZE);
- memset (&tmp + FPU_REG_RAW_SIZE, 0, len - FPU_REG_RAW_SIZE);
+ memcpy (tmp, raw, FPU_REG_RAW_SIZE);
+ memset (tmp + FPU_REG_RAW_SIZE, 0, len - FPU_REG_RAW_SIZE);
/* Extract the value as a DOUBLEST. */
/* Use extract_floating() rather than floatformat_to_doublest().