Re: PATCH: 1/6: Add AVX support

Daniel Jacobowitz
2010-03-04T19:09:43Z

On Thu, Mar 04, 2010 at 10:02:19AM -0800, H.J. Lu wrote:
> 4. Remote gdb protocol extension. GDB will send
>
> x86:xstate=BYTES:xcr0=VALUE
>
> in qSupported request packet to indicate that GDB supports x86 XSAVE
> extended state. BYTES specifies the maximum size in bytes of x86 XSAVE
> extended state GDB supports. VALUE specifies the maximum value of XCR0
> GDB supports. Gdbserver will select the best target description
> supported by GDB, based on BYTES and VALUE. The older gdbserver will
> always return SSE target.

The whole point of target descriptions, and the thing we've been going
to so much trouble to implement for the past month, is that this
negotiation is not supposed to be needed. Why does it matter what GDB
supports? If there are new registers that GDB does not know about,
in the target description supplied by gdbserver, then GDB will not use
them specially for debug info or function calls. But it will
otherwise handle them fine.

--
Daniel Jacobowitz
CodeSourcery