home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD1.bin / gnu / src / amiga / gdb-4.12-src.lha / gdb-4.12 / gdb / config / m68k / tm-apollo68b.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-03  |  2.0 KB  |  64 lines

  1. /* Parameters for execution on Apollo 68k running BSD.
  2.    Copyright (C) 1986, 1987, 1989, 1991 Free Software Foundation, Inc.
  3.    Contributed by Cygnus Support.
  4.  
  5. This file is part of GDB.
  6.  
  7. This program is free software; you can redistribute it and/or modify
  8. it under the terms of the GNU General Public License as published by
  9. the Free Software Foundation; either version 2 of the License, or
  10. (at your option) any later version.
  11.  
  12. This program is distributed in the hope that it will be useful,
  13. but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. GNU General Public License for more details.
  16.  
  17. You should have received a copy of the GNU General Public License
  18. along with this program; if not, write to the Free Software
  19. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  20.  
  21. /* Apollos use vector 0xb for the breakpoint vector */
  22.  
  23. #define BPT_VECTOR 0xb
  24.  
  25. /* Assume we have a coprocessor. If we don't, it still shouldn't hurt */
  26.  
  27. #define    HAVE_68881 1
  28.  
  29. #include "m68k/tm-m68k.h"
  30.  
  31. #define FRAME_CHAIN_VALID(chain, thisframe) (chain != 0)
  32.  
  33. /* These are the jmp_buf registers I could guess. There are 13 registers
  34.  * in the buffer. There are 8 data registers, 6 general address registers,
  35.  * the Frame Pointer, the Stack Pointer, the PC and the SR in the chip. I would
  36.  * guess that 12 is the SR, but we don't need that anyway. 0 and 1 have
  37.  * me stumped. 4 appears to be a5 for some unknown reason. If you care
  38.  * about this, disassemble setjmp to find out. But don't do it with gdb :)
  39.  */
  40.  
  41. #undef JB_SP
  42. #undef JB_FP
  43. #undef JB_PC
  44. #undef JB_D0
  45. #undef JB_D1
  46. #undef JB_D2
  47. #undef JB_D3
  48. #undef JB_D4
  49. #undef JB_D5
  50.  
  51. #define JB_SP 2
  52. #define JB_FP 3
  53. #define JB_PC 5
  54. #define JB_D0 6
  55. #define JB_D1 7
  56. #define JB_D2 8
  57. #define JB_D3 9
  58. #define JB_D4 10
  59. #define JB_D5 11
  60.  
  61. /* How to decide if we're in a shared library function.  (Probably a wrong
  62.    definintion inherited from the VxWorks config file).  */
  63. #define    IN_SOLIB_TRAMPOLINE(pc, name) (name && strcmp(name, "<end_of_program>") == 0)
  64.