home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 9 / FreshFishVol9-CD2.bin / bbs / gnu / gdb-4.14-src.lha / gdb-4.14 / gdb / config / m68k / tm-es1800.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-09-09  |  1.9 KB  |  59 lines

  1. /* Parameters for execution on ES-1800 emulator for 68000.
  2.    The code was originally written by Johan Holmberg TT/SJ Ericsson Telecom
  3.    AB and later modified by Johan Henriksson TT/SJ. It was adapted to GDB 4.0
  4.    by Jan Norden TX/DK.
  5.    Copyright 1986, 1987, 1989, 1991, 1992, 1993 Free Software Foundation, Inc.
  6.  
  7. This file is part of GDB.
  8.  
  9. GDB 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 1, or (at your option)
  12. any later version.
  13.  
  14. GDB 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 GDB; see the file COPYING.  If not, write to
  21. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  22.  
  23. #define    GDBINIT_FILENAME    ".esgdbinit"
  24.  
  25. #define    DEFAULT_PROMPT        "(esgdb) "
  26.  
  27. #include "m68k/tm-m68k.h"
  28.  
  29. /* Longjmp stuff borrowed from sun3 configuration.  Don't know if correct. 
  30.    FIXME.  */
  31. /* Offsets (in target ints) into jmp_buf.  Not defined by Sun, but at least
  32.    documented in a comment in <machine/setjmp.h>! */
  33.  
  34. #define JB_ELEMENT_SIZE 4
  35.  
  36. #define JB_ONSSTACK 0
  37. #define JB_SIGMASK 1
  38. #define JB_SP 2
  39. #define JB_PC 3
  40. #define JB_PSL 4
  41. #define JB_D2 5
  42. #define JB_D3 6
  43. #define JB_D4 7
  44. #define JB_D5 8
  45. #define JB_D6 9
  46. #define JB_D7 10
  47. #define JB_A2 11
  48. #define JB_A3 12
  49. #define JB_A4 13
  50. #define JB_A5 14
  51. #define JB_A6 15
  52.  
  53. /* Figure out where the longjmp will land.  Slurp the args out of the stack.
  54.    We expect the first arg to be a pointer to the jmp_buf structure from which
  55.    we extract the pc (JB_PC) that we will land at.  The pc is copied into ADDR.
  56.    This routine returns true on success */
  57.  
  58. #define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR)
  59.