This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: IA32: printing FP register variables
- To: bcombee at metrowerks dot com (Ben Combee)
- Subject: Re: IA32: printing FP register variables
- From: Joern Rennecke <amylaar at cygnus dot co dot uk>
- Date: Fri, 9 Jul 1999 18:24:11 +0100 (BST)
- Cc: jimb at cygnus dot com, egcs at egcs dot cygnus dot com, gdb at sourceware dot cygnus dot com
> I would suggest that we may use a "negative" ST value. The debugger can
> always know the depth of the stack from reading the status registers, so
> saying that something was in ST(7) could be interpreted as the top-most
> stack item, ST(6) as one below that, and so on. As long as the relative
> position of items on the stack didn't change (this var is always 2 from the
> top), this should be OK.
I think you get more stable position designations by considering the
position relative to the bottom of the stack.