diff options
author | Mark Kettenis <kettenis@gnu.org> | 2003-04-19 14:38:47 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2003-04-19 14:38:47 +0000 |
commit | 94ea66b37685f40a9b62c6834b6c1da935388855 (patch) | |
tree | 652af06f21928362a074757ae7716f8ab72b8698 /gdb/i386-tdep.c | |
parent | 54299a1dfc2a35c86b75f0cdb08698c532558e68 (diff) | |
download | gdb-94ea66b37685f40a9b62c6834b6c1da935388855.zip gdb-94ea66b37685f40a9b62c6834b6c1da935388855.tar.gz gdb-94ea66b37685f40a9b62c6834b6c1da935388855.tar.bz2 |
* i386-tdep.c (i386_extract_return_value,
i386_store_return_value): Correct check for availability of
floating-point registers.
Diffstat (limited to 'gdb/i386-tdep.c')
-rw-r--r-- | gdb/i386-tdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c index 478e79a..dd30aa5 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; |