home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / gdb-4.9 / gdb / config / pa / xm-hppah.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-05-12  |  2.1 KB  |  73 lines

  1. /* Parameters for hosting on an HPPA-RISC machine running HPUX, for GDB.
  2.    Copyright 1991, 1992 Free Software Foundation, Inc. 
  3.  
  4.    Contributed by the Center for Software Science at the
  5.    University of Utah (pa-gdb-bugs@cs.utah.edu).
  6.  
  7. This file is part of GDB.
  8.  
  9. This program is free software; you can redistribute it and/or modify
  10. it under the terms of the GNU General Public License as published by
  11. the Free Software Foundation; either version 2 of the License, or
  12. (at your option) any later version.
  13.  
  14. This program is distributed in the hope that it will be useful,
  15. but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  17. GNU General Public License for more details.
  18.  
  19. You should have received a copy of the GNU General Public License
  20. along with this program; if not, write to the Free Software
  21. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  22.  
  23. /* Host is big-endian. */
  24. #define    HOST_BYTE_ORDER    BIG_ENDIAN
  25.  
  26. /* Avoid "INT_MIN redefined" warnings -- by defining it here, exactly
  27.    the same as in the system <machine/machtypes.h> file.  */
  28. #undef  INT_MIN
  29. #define INT_MIN         0x80000000
  30.  
  31. /* HPUX 8.0, in its infinite wisdom, has chosen to prototype ptrace
  32.    with five arguments, so programs written for normal ptrace lose.
  33.  
  34.    Idiots.
  35.  
  36.    (They should have just made it varadic).  */
  37. #define FIVE_ARG_PTRACE
  38.  
  39. #ifndef hp800
  40. #define USG
  41. #endif
  42.  
  43. #ifndef __STDC__
  44. /* This define is discussed in decode_line_1 in symtab.c  */
  45. #define HPPA_COMPILER_BUG
  46. #endif
  47.  
  48. #define HAVE_TERMIO
  49.  
  50. #define KERNEL_U_ADDR 0
  51.  
  52. /* HP uses non-ANSI definitions, but with void * results.  */
  53. #define    MEM_FNS_DECLARED    /* Some non-ANSI use void *, not char *.  */
  54. extern void *
  55. memcpy PARAMS ((void *, const void *, size_t));        /* 4.11.2.1 */
  56.  
  57. extern void *
  58. memset PARAMS ((void *, int, size_t));            /* 4.11.6.1 */
  59.  
  60. /* HP defines malloc and realloc as returning void *, even for non-ANSI
  61.    compilations (such as with the native compiler). */
  62.  
  63. #define MALLOC_INCOMPATIBLE
  64.  
  65. extern void *
  66. malloc PARAMS ((size_t));
  67.  
  68. extern void *
  69. realloc PARAMS ((void *, size_t));
  70.  
  71. extern void
  72. free PARAMS ((void *));
  73.