]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
i386: Use a fallback XSAVE layout for remote targets
authorJohn Baldwin <jhb@FreeBSD.org>
Mon, 27 Nov 2023 21:53:22 +0000 (13:53 -0800)
committerJohn Baldwin <jhb@FreeBSD.org>
Mon, 27 Nov 2023 21:53:22 +0000 (13:53 -0800)
commit66637e209cc836c19a21a28e91046649c7702037
tree98f333ed40a872165690234001683d1aca5652db
parentf1b8ee6f2b4381bc46a0ad4c233b6eddc1e135b5
i386: Use a fallback XSAVE layout for remote targets

If a target provides a target description including registers from the
XSAVE extended region, but does not provide an XSAVE layout, use a
fallback XSAVE layout based on the included registers.  This fallback
layout matches GDB's behavior in earlier releases which assumes the
layout from Intel CPUs.

This fallback layout is currently only used for remote targets since
native targets which support XSAVE provide an explicit layout derived
from CPUID.

PR gdb/30912
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=30912
Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/i386-tdep.c
gdb/i387-tdep.c
gdb/i387-tdep.h