GDBserver

host-defs.h
Go to the documentation of this file.
1 /* Basic host-specific definitions for GDB.
2 Copyright (C) 1986-2018 Free Software Foundation, Inc.
3
4 This file is part of GDB.
5
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.
10
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.
15
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/>. */
18
19 #ifndef HOST_DEFS_H
20 #define HOST_DEFS_H
21
22 #include <limits.h>
23
24 /* Static host-system-dependent parameters for GDB. */
25
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
30 #endif
31
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
35 as the target. */
36
37 #if defined (CHAR_BIT)
38 #define HOST_CHAR_BIT CHAR_BIT
39 #else
40 #define HOST_CHAR_BIT TARGET_CHAR_BIT
41 #endif
42
43 #ifdef __MSDOS__
44 # define CANT_FORK
45 # define GLOBAL_CURDIR
46 # define DIRNAME_SEPARATOR ';'
47 #endif
48
49 #if !defined (__CYGWIN__) && defined (_WIN32)
50 # define DIRNAME_SEPARATOR ';'
51 #endif
52
53 #ifndef DIRNAME_SEPARATOR
54 #define DIRNAME_SEPARATOR ':'
55 #endif
56
57 #ifndef SLASH_STRING
58 #define SLASH_STRING "/"
59 #endif
60
61 #endif /* HOST_DEFS_H */
limits.h