gdb: Support XSAVE layouts for the current host in the Linux x86 targets.
authorJohn Baldwin <jhb@FreeBSD.org>
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)
commit9848bf83750ba897090320137221977584405e06
treeadbfd12b2c6f477c31549718500a2819f8c6fed3
parentb42405a159450004f2e2497e2b2d81bcac85c947
gdb: Support XSAVE layouts for the current host in the Linux x86 targets.

Note that this uses the CPUID instruction to determine the total size
of the XSAVE register set.  If there is a way to fetch the register set
size using ptrace that would probably be better.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/amd64-linux-nat.c
gdb/configure.nat
gdb/i386-linux-nat.c
gdb/x86-linux-nat.c
gdb/x86-linux-nat.h