host-defs.h 1.7 KB

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