home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / D / GDB / GDB-4.13 / GDB-4 / gdb-4.13 / gdb / config / sparc / xm-sun4os4.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-05-14  |  2.1 KB  |  61 lines

  1. /* Macro definitions for running gdb on a Sun 4 running sunos 4.
  2.    Copyright (C) 1989, 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 2 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, write to the Free Software
  18. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  19.  
  20. #include "sparc/xm-sparc.h"
  21. #define FPU
  22.  
  23. /* SunOS 4.x has memory mapped files.  */
  24.  
  25. #define HAVE_MMAP
  26.  
  27. /* If you expect to use the mmalloc package to obtain mapped symbol files,
  28.    for now you have to specify some parameters that determine how gdb places
  29.    the mappings in it's address space.  See the comments in map_to_address()
  30.    for details.  This is expected to only be a short term solution.  Yes it
  31.    is a kludge.
  32.    FIXME:  Make this more automatic. */
  33.  
  34. #define MMAP_BASE_ADDRESS    0xE0000000    /* First mapping here */
  35. #define MMAP_INCREMENT        0x01000000    /* Increment to next mapping */
  36.  
  37. /* /usr/include/malloc.h is included by vx-share/xdr_ld, and might
  38.    declare these using char * not void *.  The following should work with
  39.    acc, gcc, or /bin/cc.  */
  40.  
  41. #define MALLOC_INCOMPATIBLE
  42. #include <malloc.h>
  43.  
  44. /* acc for SunOS4 comes with string.h and memory.h headers which we
  45.    pick up somewhere (where?) and which use char *, not void *.  The
  46.    following should work with acc, gcc, or /bin/cc, at least with
  47.    SunOS 4.1.1.  */
  48.  
  49. #define MEM_FNS_DECLARED
  50. #include <memory.h>
  51.  
  52. /* SunOS 4.x uses nonstandard "char *" as type of third argument to ptrace() */
  53.  
  54. #define PTRACE_ARG3_TYPE char*
  55.  
  56. /* Using termios is required to save and restore ICRNL and ONLCR
  57.    separately.  */
  58.  
  59. /* At least SunOS 4.1.1 has termios.  I'm not sure about 4.0.3.  */
  60. #define HAVE_TERMIOS
  61.