summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2003-04-19 14:38:47 +0000
committerMark Kettenis <kettenis@gnu.org>2003-04-19 14:38:47 +0000
commit22e0f4c5b65a4509c673f96463188fba4ec7e476 (patch)
tree3f79ed144448e7529ef9ba163068955f0ac48164
parentbb445ccd1cdf3620617d493abc44b0d1bac95ef3 (diff)
downloadgdb-22e0f4c5b65a4509c673f96463188fba4ec7e476.tar.gz
* i386-tdep.c (i386_extract_return_value,
i386_store_return_value): Correct check for availability of floating-point registers.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/i386-tdep.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 99a79d83430..fa9446b6fda 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2003-04-19 Mark Kettenis <kettenis@gnu.org>
+ * i386-tdep.c (i386_extract_return_value,
+ i386_store_return_value): Correct check for availability of
+ floating-point registers.
+
* i386-tdep.c (i386_frame_num_args): Remove function.
(i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c
index 478e79abc30..dd30aa53eb8 100644
--- a/gdb/i386-tdep.c
+++ b/gdb/i386-tdep.c
@@ -892,7 +892,7 @@ i386_extract_return_value (struct type *type, struct regcache *regcache,
if (TYPE_CODE (type) == TYPE_CODE_FLT)
{
- if (FP0_REGNUM == 0)
+ if (FP0_REGNUM < 0)
{
warning ("Cannot find floating-point return value.");
memset (valbuf, 0, len);
@@ -950,7 +950,7 @@ i386_store_return_value (struct type *type, struct regcache *regcache,
ULONGEST fstat;
char buf[FPU_REG_RAW_SIZE];
- if (FP0_REGNUM == 0)
+ if (FP0_REGNUM < 0)
{
warning ("Cannot set floating-point return value.");
return;