1 /* OS ABI variant definitions for GDB and gdbserver.
3 Copyright (C
) 2001-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 /* Each definition in this file is an osabi known to GDB.
22 The first argument is used to create the enum name and is appended
25 The second argument is the osabi name. These strings can
't be
26 changed _ever_ as gdbserver will emit these. Changing these
27 strings would break compatibility with already released versions of
30 The third argument is a regexp which matches against a target
33 GDB_OSABI_DEF_FIRST (UNKNOWN, "unknown", nullptr)
35 GDB_OSABI_DEF (NONE, "none", nullptr)
37 GDB_OSABI_DEF (SVR4, "SVR4", nullptr)
38 GDB_OSABI_DEF (HURD, "GNU/Hurd", nullptr)
39 GDB_OSABI_DEF (SOLARIS, "Solaris", nullptr)
40 GDB_OSABI_DEF (LINUX, "GNU/Linux", "linux(-gnu[^-]*)?")
41 GDB_OSABI_DEF (FREEBSD, "FreeBSD", nullptr)
42 GDB_OSABI_DEF (NETBSD, "NetBSD", nullptr)
43 GDB_OSABI_DEF (OPENBSD, "OpenBSD", nullptr)
44 GDB_OSABI_DEF (WINCE, "WindowsCE", nullptr)
45 GDB_OSABI_DEF (GO32, "DJGPP", nullptr)
46 GDB_OSABI_DEF (CYGWIN, "Cygwin", nullptr)
47 GDB_OSABI_DEF (WINDOWS, "Windows", nullptr)
48 GDB_OSABI_DEF (AIX, "AIX", nullptr)
49 GDB_OSABI_DEF (DICOS, "DICOS", nullptr)
50 GDB_OSABI_DEF (DARWIN, "Darwin", nullptr)
51 GDB_OSABI_DEF (OPENVMS, "OpenVMS", nullptr)
52 GDB_OSABI_DEF (LYNXOS178, "LynxOS178", nullptr)
53 GDB_OSABI_DEF (NEWLIB, "Newlib", nullptr)
54 GDB_OSABI_DEF (SDE, "SDE", nullptr)
55 GDB_OSABI_DEF (PIKEOS, "PikeOS", nullptr)
57 GDB_OSABI_DEF_LAST (INVALID, "<invalid>", nullptr)