Re: [rfc/rft] ppc gdbserver: autodetect AltiVec and SPE

Daniel Jacobowitz
2008-04-17T17:28:28Z

On Thu, Feb 28, 2008 at 05:57:06PM +0100, Ulrich Weigand wrote:
> - There was a conditional check for fpscr in ppc_cannot_store_register;
> but as this routine is never called for fpscr in SPE mode, the check
> seems superfluous and I just removed it.

This doesn't seem to be true.

gdbserver: Unknown register fpscr requested

There's no code to use PPC_PTRACE_GETREGS, so we do in fact reach
here. I'm retesting with

/* Some kernels do not allow us to store fpscr. */
if (!(ppc_hwcap & PPC_FEATURE_HAS_SPE) && regno == find_regno ("fpscr"))
return 2;

--
Daniel Jacobowitz
CodeSourcery