[PATCHv5 06/11] gdb/gdbserver: share I386_LINUX_XSAVE_XCR0_OFFSET definition
Willgerodt, Felix
felix.willgerodt@intel.com
Mon Apr 29 14:34:32 GMT 2024
> -----Original Message-----
> From: Andrew Burgess <aburgess@redhat.com>
> Sent: Freitag, 26. April 2024 17:02
> To: gdb-patches@sourceware.org
> Cc: Andrew Burgess <aburgess@redhat.com>; Willgerodt, Felix
> <felix.willgerodt@intel.com>; John Baldwin <jhb@FreeBSD.org>
> Subject: [PATCHv5 06/11] gdb/gdbserver: share
> I386_LINUX_XSAVE_XCR0_OFFSET definition
>
> Share the definition of I386_LINUX_XSAVE_XCR0_OFFSET between GDB and
> gdbserver.
>
> This commit is part of a series that aims to share more of the x86
> target description creation code between GDB and gdbserver. The
> I386_LINUX_XSAVE_XCR0_OFFSET #define is used as part of the target
> description creation, and I noticed that this constant is defined
> separately for GDB and gdbserver.
>
> This commit moves the definition into gdbsupport/x86-xstate.h, which
> allows the #define to be shared.
>
> There should be no user visible changes after this commit.
> ---
> gdb/i386-linux-tdep.h | 20 --------------------
> gdbserver/linux-x86-low.cc | 21 ---------------------
> gdbsupport/x86-xstate.h | 20 ++++++++++++++++++++
> 3 files changed, 20 insertions(+), 41 deletions(-)
>
Approved-By: Felix Willgerodt <felix.willgerodt@intel.com>
Thanks,
Felix
Intel Deutschland GmbH
Registered Address: Am Campeon 10, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de <http://www.intel.de>
Managing Directors: Christin Eisenschmid, Sharon Heck, Tiffany Doon Silva
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928
More information about the Gdb-patches
mailing list