aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2003-10-26 14:47:26 +0000
committerMark Kettenis <kettenis@gnu.org>2003-10-26 14:47:26 +0000
commitf783586b81cab0d6b8b4a8590d17a53ccb7c1231 (patch)
tree637831c99fe35b612fd0589541958efcbf7ea4b8 /gdb
parentbcf48cc700d1f667aba7794950664a5dd83270d1 (diff)
downloadgdb-f783586b81cab0d6b8b4a8590d17a53ccb7c1231.zip
gdb-f783586b81cab0d6b8b4a8590d17a53ccb7c1231.tar.gz
gdb-f783586b81cab0d6b8b4a8590d17a53ccb7c1231.tar.bz2
* i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
* x86-64-tdep.c (x86_64_store_return_value): Use I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/i386-tdep.h2
-rw-r--r--gdb/x86-64-tdep.c2
3 files changed, 5 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index f460b93..004ed17 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2003-10-26 Mark Kettenis <kettenis@gnu.org>
+ * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
+ * x86-64-tdep.c (x86_64_store_return_value): Use
+ I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
+
Change register numbers to enumartion values.
* i386-tdep.h (enum i386_regnum): New.
(I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
diff --git a/gdb/i386-tdep.h b/gdb/i386-tdep.h
index cb42a1b..1b5b6a3 100644
--- a/gdb/i386-tdep.h
+++ b/gdb/i386-tdep.h
@@ -104,8 +104,6 @@ struct gdbarch_tdep
/* Floating-point registers. */
-#define FPU_REG_RAW_SIZE 10
-
/* All FPU control regusters (except for FIOFF and FOOFF) are 16-bit
(at most) in the FPU, but are zero-extended to 32 bits in GDB's
register cache. */
diff --git a/gdb/x86-64-tdep.c b/gdb/x86-64-tdep.c
index 351b115..5e6a7e1 100644
--- a/gdb/x86-64-tdep.c
+++ b/gdb/x86-64-tdep.c
@@ -761,7 +761,7 @@ x86_64_store_return_value (struct type *type, struct regcache *regcache,
if (TYPE_CODE_FLT == TYPE_CODE (type) && len == 16)
{
ULONGEST fstat;
- char buf[FPU_REG_RAW_SIZE];
+ char buf[I386_MAX_REGISTER_SIZE];
/* Returning floating-point values is a bit tricky. Apart from
storing the return value in %st(0), we have to simulate the