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-sun4sol2.h < prev   
Encoding:
C/C++ Source or Header  |  1994-05-14  |  2.5 KB  |  69 lines

  1. /* Macro definitions for running gdb on a Sun 4 running Solaris 2.
  2.    Copyright 1989, 1992 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. /* Most of what we know is generic to SPARC hosts.  */
  21.  
  22. #include "sparc/xm-sparc.h"
  23.  
  24. /* Pick up more stuff from the generic SVR4 host include file. */
  25.  
  26. #include "xm-sysv4.h"
  27.  
  28. /* SVR4's can't seem to agree on what to call the type that contains the
  29.    general registers.  Kludge around it with a #define.  */
  30.  
  31. #define    gregset_t    prgregset_t
  32. #define    fpregset_t    prfpregset_t
  33.  
  34. /* The native Sun compiler complains about using volatile
  35.    to indicate functions that never return.  So shut it up by simply
  36.    defining away "NORETURN", which is normally defined to "volatile". */
  37.  
  38. #ifndef __GNUC__
  39. # define NORETURN /**/
  40. #endif
  41.  
  42. /* If you expect to use the mmalloc package to obtain mapped symbol files,
  43.    for now you have to specify some parameters that determine how gdb places
  44.    the mappings in it's address space.  See the comments in map_to_address()
  45.    for details.  This is expected to only be a short term solution.  Yes it
  46.    is a kludge.
  47.    FIXME:  Make this more automatic. */
  48.  
  49. #define MMAP_BASE_ADDRESS    0xE0000000    /* First mapping here */
  50. #define MMAP_INCREMENT        0x01000000    /* Increment to next mapping */
  51.  
  52. /* These are not currently used in SVR4 (but should be, FIXME!).  */
  53. #undef    DO_DEFERRED_STORES
  54. #undef    CLEAR_DEFERRED_STORES
  55.  
  56. /* May be needed, may be not?  From Pace Willisson's port.  FIXME.  */
  57. #define NEED_POSIX_SETPGID
  58.  
  59. /* Solaris PSRVADDR support does not seem to include a place for nPC.  */
  60. #define PRSVADDR_BROKEN
  61.  
  62. /* The mem functions are in <string.h>.  */
  63. #undef MEM_FNS_DECLARED
  64. #define MEM_FNS_DECLARED 1
  65.  
  66. /* solaris doesn't have siginterrupt, though it has sigaction; however,
  67.    in this case siginterrupt would just be setting the default. */
  68. #define NO_SIGINTERRUPT
  69.