This is the mail archive of the gdb@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]
Other format: [Raw text]

Re: Problem with fld on i686



On Tue, 27 Nov 2001, John Hedges wrote:

> The st0 register gets -nan and so this is the result of the static_cast.

I don't get it: are you saying that the disassembly shows incorrect 
code?  If the code is correct, what does this have to do with the
source code (static_cast etc.) from which the assembly instructions
were produced?

If the code _is_ correct (I think it is), but the results aren't, then 
the fact that static_cast was used in the C++ program is irrelevant, 
right?

> The problem does not occur when run outside the debugger, nor in a 
> minimal test program.

This suggests that perhaps the FPU state is not saved/restored correctly 
across task switches.  What OS is that?  Can you try a different version 
of the same OS, or some similar but not identical OS?


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