This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [PATCH] Fix returning floating points values for x86


> Date: Wed, 11 Jul 2001 10:49:16 +0200
> From: Mark Kettenis <kettenis@wins.uva.nl>
> 
> 	* i386-tdep.c (i386_extract_return_value): "Fix" comment.
> 	(i386_store_return_value): Frob FPU status and tag word to make
> 	sure the return value is the only value on the FPU stack.

Mark, could you please say a few words about the problem that this
solves, and why is this the right solution?  I admit I don't
understand it, and the comment about st(0) scared me a bit: it's
certainly _not_ true, in general, that st(0) is always FP0_REGNUM.

TIA


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]