Fix: strip --strip-debug breaks relocations
[binutils-gdb.git] / gdb / nat / x86-xstate.h
blob30f3a35087e1a58b77b9be8789f99dbba729439d
1 /* x86 XSAVE extended state functions.
3 Copyright (C) 2022-2023 Free Software Foundation, Inc.
5 This file is part of GDB.
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>. */
20 #ifndef NAT_X86_XSTATE_H
21 #define NAT_X86_XSTATE_H
23 #include "gdbsupport/x86-xstate.h"
25 /* Return the size of the XSAVE extended state fetched via CPUID. */
27 int x86_xsave_length ();
29 /* Return the layout (size and offsets) of the XSAVE extended regions
30 for the running host. Offsets of each of the enabled regions in
31 XCR0 are fetched via CPUID. */
33 x86_xsave_layout x86_fetch_xsave_layout (uint64_t xcr0, int len);
35 #endif /* NAT_X86_XSTATE_H */