[PATCH v6a 06/15] gdb: Update x86 FreeBSD architectures to support XSAVE layouts.

Simon Marchi simon.marchi@polymtl.ca
Mon Aug 28 16:01:39 GMT 2023


On 7/28/23 17:23, John Baldwin wrote:
> Refactor i386fbsd_core_read_xcr0 to fetch and return a corresponding
> x86_xsave_layout as well as xcr0 using the size of an existing
> NT_X86_XSTATE core dump to determine the offsets via
> i387_guess_xsave_layout.  Use this to add an implementation of
> gdbarch_core_xfer_x86_xsave_layout.
> 
> Use tdep->xsave_layout.sizeof_xsave as the size of the XSTATE register
> set and only fetch/store the register set if this size is non-zero.

Approved-By: Simon Marchi <simon.marchi@efficios.com>

Simon


More information about the Gdb-patches mailing list