home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / gdb-4.5 / sun4.md / gdb / RCS / tm-sun4os4.h,v < prev    next >
Encoding:
Text File  |  1992-06-24  |  2.0 KB  |  82 lines

  1. head     1.1;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.1
  10. date     92.06.09.14.26.49;  author secor;  state Exp;
  11. branches ;
  12. next     ;
  13.  
  14.  
  15. desc
  16. @@
  17.  
  18.  
  19.  
  20. 1.1
  21. log
  22. @Initial revision
  23. @
  24. text
  25. @/* Macro definitions for GDB for a Sun 4 running sunos 4.
  26.    Copyright (C) 1989, 1992 Free Software Foundation, Inc.
  27.  
  28. This file is part of GDB.
  29.  
  30. This program is free software; you can redistribute it and/or modify
  31. it under the terms of the GNU General Public License as published by
  32. the Free Software Foundation; either version 2 of the License, or
  33. (at your option) any later version.
  34.  
  35. This program is distributed in the hope that it will be useful,
  36. but WITHOUT ANY WARRANTY; without even the implied warranty of
  37. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  38. GNU General Public License for more details.
  39.  
  40. You should have received a copy of the GNU General Public License
  41. along with this program; if not, write to the Free Software
  42. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  43.  
  44. #include "tm-sparc.h"
  45. #include "tm-sunos.h"
  46.  
  47. #undef STACK_END_ADDRESS
  48. #ifdef sprite
  49. #define USRSTACK 0xf6000000
  50. #define STACK_END_ADDRESS 0xf6000000
  51. #define NO_SIGINTERRUPT
  52. #else
  53. #define STACK_END_ADDRESS 0xf8000000
  54. #endif
  55.  
  56. /* Offsets into jmp_buf.  Not defined by Sun, but at least documented in a
  57.    comment in <machine/setjmp.h>! */
  58.  
  59. #define JB_ELEMENT_SIZE 4    /* Size of each element in jmp_buf */
  60.  
  61. #define JB_ONSSTACK 0
  62. #define JB_SIGMASK 1
  63. #define JB_SP 2
  64. #define JB_PC 3
  65. #define JB_NPC 4
  66. #define JB_PSR 5
  67. #define JB_G1 6
  68. #define JB_O0 7
  69. #define JB_WBCNT 8
  70.  
  71. /* Figure out where the longjmp will land.  We expect that we have just entered
  72.    longjmp and haven't yet setup the stack frame, so the args are still in the
  73.    output regs.  %o0 (O0_REGNUM) points at the jmp_buf structure from which we
  74.    extract the pc (JB_PC) that we will land at.  The pc is copied into ADDR.
  75.    This routine returns true on success */
  76.  
  77. extern int
  78. get_longjmp_target PARAMS ((CORE_ADDR *));
  79.  
  80. #define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR)
  81. @
  82.