1 /* Native-dependent code for GNU/Linux i386.
3 Copyright (C) 2024 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_I386_LINUX_H
21 #define NAT_I386_LINUX_H
23 /* Does the current host support the GETFPXREGS request? The system header
24 file may or may not define it, but even if it is defined, the kernel
25 will return EIO if it's running on a pre-SSE processor.
27 Initially this will be TRIBOOL_UNKNOWN and should be changed to
28 TRIBOOL_FALSE if the ptrace call is attempted and fails or changed to
29 TRIBOOL_TRUE if the ptrace call is attempted and succeeds.
31 My instinct is to attach this to some architecture- or target-specific
32 data structure, but really, a particular GDB process can only run on top
33 of one kernel at a time. So it's okay - for this to be a global
35 extern tribool have_ptrace_getfpxregs
;
37 #endif /* NAT_I386_LINUX_H */