* i386-tdep.c (i386_extract_return_value,
i386_store_return_value): Correct check for availability of floating-point registers.
This commit is contained in:
parent
54299a1dfc
commit
94ea66b376
2 changed files with 6 additions and 2 deletions
|
@ -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.
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue