17d62b00eSchristos /* Basic host-specific definitions for GDB. 2*6881a400Schristos Copyright (C) 1986-2023 Free Software Foundation, Inc. 37d62b00eSchristos 47d62b00eSchristos This file is part of GDB. 57d62b00eSchristos 67d62b00eSchristos This program is free software; you can redistribute it and/or modify 77d62b00eSchristos it under the terms of the GNU General Public License as published by 87d62b00eSchristos the Free Software Foundation; either version 3 of the License, or 97d62b00eSchristos (at your option) any later version. 107d62b00eSchristos 117d62b00eSchristos This program is distributed in the hope that it will be useful, 127d62b00eSchristos but WITHOUT ANY WARRANTY; without even the implied warranty of 137d62b00eSchristos MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 147d62b00eSchristos GNU General Public License for more details. 157d62b00eSchristos 167d62b00eSchristos You should have received a copy of the GNU General Public License 177d62b00eSchristos along with this program. If not, see <http://www.gnu.org/licenses/>. */ 187d62b00eSchristos 197d62b00eSchristos #ifndef COMMON_HOST_DEFS_H 207d62b00eSchristos #define COMMON_HOST_DEFS_H 217d62b00eSchristos 227d62b00eSchristos #include <limits.h> 237d62b00eSchristos 247d62b00eSchristos /* Static host-system-dependent parameters for GDB. */ 257d62b00eSchristos 267d62b00eSchristos /* * Number of bits in a char or unsigned char for the target machine. 277d62b00eSchristos Just like CHAR_BIT in <limits.h> but describes the target machine. */ 287d62b00eSchristos #if !defined (TARGET_CHAR_BIT) 297d62b00eSchristos #define TARGET_CHAR_BIT 8 307d62b00eSchristos #endif 317d62b00eSchristos 327d62b00eSchristos /* * If we picked up a copy of CHAR_BIT from a configuration file 337d62b00eSchristos (which may get it by including <limits.h>) then use it to set 347d62b00eSchristos the number of bits in a host char. If not, use the same size 357d62b00eSchristos as the target. */ 367d62b00eSchristos 377d62b00eSchristos #if defined (CHAR_BIT) 387d62b00eSchristos #define HOST_CHAR_BIT CHAR_BIT 397d62b00eSchristos #else 407d62b00eSchristos #define HOST_CHAR_BIT TARGET_CHAR_BIT 417d62b00eSchristos #endif 427d62b00eSchristos 437d62b00eSchristos #ifdef __MSDOS__ 447d62b00eSchristos # define CANT_FORK 457d62b00eSchristos # define GLOBAL_CURDIR 467d62b00eSchristos # define DIRNAME_SEPARATOR ';' 477d62b00eSchristos #endif 487d62b00eSchristos 497d62b00eSchristos #if !defined (__CYGWIN__) && defined (_WIN32) 507d62b00eSchristos # define DIRNAME_SEPARATOR ';' 517d62b00eSchristos #endif 527d62b00eSchristos 537d62b00eSchristos #ifndef DIRNAME_SEPARATOR 547d62b00eSchristos #define DIRNAME_SEPARATOR ':' 557d62b00eSchristos #endif 567d62b00eSchristos 577d62b00eSchristos #ifndef SLASH_STRING 587d62b00eSchristos #define SLASH_STRING "/" 597d62b00eSchristos #endif 607d62b00eSchristos 617d62b00eSchristos #endif /* COMMON_HOST_DEFS_H */ 62