This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfc][1/2] add suport for 64-bit fpscr in powerpc linux native
On Mon, Nov 17, 2008 at 08:00:23PM -0200, Thiago Jung Bauermann wrote:
> If linking to the expat library wasn't optional when building GDB, one
> option would be to provide just the power-fpu-isa205.xml file containing
> the feature description, and then generate the target description XML on
> the fly including the appropriate features, and have GDB parse that.
There's another way you could do it... if the individual features
could be compiled to C instead of just entire descriptions you could
call their generated functions. It's not set up to work that way
at the moment. I don't know if it would be an easy change or a messy
one.
> > > +gdb_test "print/t \$fpscr" " = 10100000000000000000000000000000000" "FPSCR for round to nearest, ties toward zero rounding mode"
> >
> > Just a casual remark, not a request for change, but I'm surprised
> > that you might find /t more useful in this case than /x ;-).
>
> I agree in general /x is more helpful, but in this case binary was
> easier because the FPSCR is just a bunch of flags, so I could directly
> see which were set and which weren't.
>
> Ok, I admit I still don't do my taxes in hex. :-)
You do them in binary?
Anyway, you might want to consider adding a flags type, like x86
%eflags, for $fpscr.
--
Daniel Jacobowitz
CodeSourcery