gdbserver: Refactor the legacy region within the xsave struct
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)
commitc0c43317ef9a1f70ba5fab41d2d08dc7ce08f67e
tree166450fcb2e25ab5f80cb6d2d604f4d414fc72be
parent03e6fe7e0a6fc4adccf59681962490a10fb31f7c
gdbserver: Refactor the legacy region within the xsave struct

Legacy fields of the XSAVE area are already defined within fx_save
struct.  Use class inheritance to remove code duplication.

The two changed functions are called within all tests which run
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