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