This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]