Float registers on Sparc?
Chitti Raju
chitti@wipinfo.soft.net
Wed Dec 15 21:09:00 GMT 1999
>
> > 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.
More information about the Gdb
mailing list