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

Simon Marchi via Gdb-patches
2023-08-28T16:02:13Z

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