This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
Re: IA32: printing FP register variables
- To: Jim Blandy <jimb@cygnus.com>
- Subject: Re: IA32: printing FP register variables
- From: Jeffrey A Law <law@cygnus.com>
- Date: Mon, 12 Jul 1999 17:35:41 -0600
- cc: egcs@egcs.cygnus.com, gdb@sourceware.cygnus.com
- Reply-To: law@cygnus.com
In message <np908ljwht.fsf@zwingli.cygnus.com>you write:
>
> Hmm. What other IA32 compilers produce STABS? How do they number FP
> registers?
Dunno. Robert -- can you see what the SCO compilers do with this stuff?
That might be interesting.
> If GDB can find the base of the FP stack reliably, using the method
> that Ben Combee suggests, then we don't need LRS at all to describe
> variables' homes. If we simply number the FP registers relative to
> the base of the FP stack, their names won't change as insns push and
> pop FP values.
I'm not sure this is safe either. Consider what happens at basic block
boundaries to the regstack. I believe variables location relative to
the bottom of the stack can change at a basic block boundary.
jeff