1 /* Basic host-specific definitions for GDB.
2 Copyright (C) 1986-2020 Free Software Foundation, Inc.
4 This file is part of GDB.
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>. */
19 #ifndef COMMON_HOST_DEFS_H
20 #define COMMON_HOST_DEFS_H
24 /* Static host-system-dependent parameters for GDB. */
26 /* * Number of bits in a char or unsigned char for the target machine.
27 Just like CHAR_BIT in <limits.h> but describes the target machine. */
28 #if !defined (TARGET_CHAR_BIT)
29 #define TARGET_CHAR_BIT 8
32 /* * If we picked up a copy of CHAR_BIT from a configuration file
33 (which may get it by including <limits.h>) then use it to set
34 the number of bits in a host char. If not, use the same size
37 #if defined (CHAR_BIT)
38 #define HOST_CHAR_BIT CHAR_BIT
40 #define HOST_CHAR_BIT TARGET_CHAR_BIT
45 # define GLOBAL_CURDIR
46 # define DIRNAME_SEPARATOR ';'
49 #if !defined (__CYGWIN__) && defined (_WIN32)
50 # define DIRNAME_SEPARATOR ';'
53 #ifndef DIRNAME_SEPARATOR
54 #define DIRNAME_SEPARATOR ':'
58 #define SLASH_STRING "/"
61 #endif /* COMMON_HOST_DEFS_H */