[PATCH] fix PPC floating point debug
Stefani Seibold
stefani at seibold.net
Fri Nov 27 23:44:19 EST 2009
Am Freitag, den 27.11.2009, 22:01 +1100 schrieb Benjamin Herrenschmidt:
> On Fri, 2009-11-27 at 09:59 +0100, Stefani Seibold wrote:
> > The PPC architecture is unable to debug applications using hardware
> > floating point, because it would not save the floating point registers.
> >
> > After returning from the debugger, the contents of register was
> > modified. This patch fix this bug.
>
> I'm not sure what problem you are trying to fix... debugging FP apps
> works just fine afaik. You don't need to flush the FP state into the
> thread when delivering the SIGTRAP. If you have a signal handler, that
> will be done for you by the signal code before laying out the signal
> frame. If you are using ptrace, you should be using the appropriate
> ptrace calls to retrieve the FP state and they should do the right thing
> to.
>
Aeh... Forget it! Thank you for the support.
Stefani
More information about the Linuxppc-dev
mailing list