Mail Archives: djgpp-workers/2000/04/10/14:37:22
On 10 Apr 00, at 17:09, Eli Zaretskii wrote:
> Sorry, I don't think that's what Pierre was saying (I asked for an
> example program to be sure I understand). I think he was saying that
> when this particular value, 1e+4893 (which cannot be *but* a long
> double), is loaded into the FPU, "info float" displays Inf instead of its
> value (which is large, but finite).
Ah. I haven't seen this with info float yet.
> > To debug floating point, you can try to use the compiler option
> > -ffloat-store.
I forgot to say, that you may need the -ggdb flag, too.
[Problems with this approach]
> Yes. Therefore, I think that using "info float" is a much better way.
> You need to get used to the way x87 operates to find where the values
> are, but that's not very hard.
Yes, info float is useful. But it really can be hard to track down,
where all the variables are stored, especially when compiling with
Optimization. (And I think, I do know x87 assembly).
Also, is there a way, to make Gdb print its output to stdout or
stderr, so that I can use my script utility, to log my debug session?
Right now, it only seems to print its copyright message to the
stderr/stdout. The other output seems to be written by the BIOS or by
direct screen access. Not surprisingly, bash has the same problem.
--
Regards, Dieter
- Raw text -