This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: PATCH: 1/6: Add AVX support
- From: Daniel Jacobowitz <dan at codesourcery dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: GDB <gdb-patches at sourceware dot org>
- Date: Thu, 4 Mar 2010 14:09:34 -0500
- Subject: Re: PATCH: 1/6: Add AVX support
- References: <20100304180219.GA10826@intel.com>
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