This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
Re: Float registers on Sparc?
- To: jimb at cygnus dot com (Jim Blandy)
- Subject: Re: Float registers on Sparc?
- From: Chitti Raju <chitti at wipinfo dot soft dot net>
- Date: Thu, 16 Dec 1999 10:37:49 +0530 (IST)
- Cc: toy at rtp dot ericsson dot se, gdb at sourceware dot cygnus dot com
- Location: Wipro Ltd, Technology Solutions, Koramangala, Bangalore, India
- Reply-To: chitti at wipinfo dot soft dot net
>
> > How do I get access to the single-precision registers? What about the
> > quad registers? I looked through the gdb manual, but didn't find
> > anything obvious.
>
> I believe that $f0 -- $f31 are the single-precision registers. I
> don't think GDB has any way to print the double- or quad-precision
> registers. But I'm not a SPARC expert --- perhaps someone else here
> knows.
>
'info all-registers' prints all the registers including the floating point
registers.
sample output from 'info all-registers'
f4 2.8125 (raw 0x40340000) 20
f5 0 (raw 0x00000000)
f6 -NaN(0x7fffff) (raw 0xffffffff) -NaN(0xfffffffffffff)
f7 -NaN(0x7fffff) (raw 0xffffffff)
The first two columns represent the single-precision value in decimal and hex,
and the third column gives double precision value of the pair <fx, fx+1>
look at the function sparc_print_register_hook() in sparc-tdep.c.
Looks like the call to print the double-precision register is made from here.
There is support to print the quad-precision register also, but is in comments.