gdbserver: Use x86_xstate_layout to parse the XSAVE extended state area.
authorAleksandar Paunovic <aleksandar.paunovic@intel.com>
Mon, 28 Aug 2023 21:18:19 +0000 (14:18 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Mon, 28 Aug 2023 21:18:19 +0000 (14:18 -0700)
commit1f14ecbee66a7dd46e477158decd515e3669ba2b
tree24973f832b5c7c7d26076a5582c91b5f18d5f4fa
parentc0c43317ef9a1f70ba5fab41d2d08dc7ce08f67e
gdbserver: Use x86_xstate_layout to parse the XSAVE extended state area.

Replace the extended state area fields of i387_xsave with methods which
return an offset into the XSAVE buffer.

The two changed functions are called within all tests which runs
gdbserver.

Signed-off-by: Aleksandar Paunovic <aleksandar.paunovic@intel.com>
Co-authored-by: John Baldwin <jhb@FreeBSD.org>
Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdbserver/i387-fp.cc