xref: /openbsd-src/gnu/usr.bin/binutils/gdb/config/m68k/tm-vx68.h (revision 63addd46c1e40ca0f49488ddcdc4ab598023b0c1)
1 /* Target machine description for VxWorks m68k's, for GDB, the GNU debugger.
2    Copyright 1986, 1987, 1989, 1991, 1992, 1993, 1996, 1998, 1999, 2000,
3    2002, 2003
4    Free Software Foundation, Inc.
5    Contributed by Cygnus Support.
6 
7    This file is part of GDB.
8 
9    This program 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 2 of the License, or
12    (at your option) any later version.
13 
14    This program 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 this program; if not, write to the Free Software
21    Foundation, Inc., 59 Temple Place - Suite 330,
22    Boston, MA 02111-1307, USA.  */
23 
24 /* GCC is probably the only compiler used on this configuration.  So
25    get this right even if the code which detects gcc2_compiled. is
26    still broken.  */
27 
28 #define BELIEVE_PCC_PROMOTION 1
29 
30 /* We have more complex, useful breakpoints on the target.  */
31 #define	DECR_PC_AFTER_BREAK	0
32 
33 #include "config/tm-vxworks.h"
34 
35 /* Takes the current frame-struct pointer and returns the chain-pointer
36    to get to the calling frame.
37 
38    If our current frame pointer is zero, we're at the top; else read out
39    the saved FP from memory pointed to by the current FP.  */
40 
41 #undef	DEPRECATED_FRAME_CHAIN
42 #define DEPRECATED_FRAME_CHAIN(thisframe) ((thisframe)->frame? read_memory_integer ((thisframe)->frame, 4): 0)
43 
44 /* FIXME, Longjmp information stolen from Sun-3 config.  Dunno if right.  */
45 /* Offsets (in target ints) into jmp_buf.  Not defined by Sun, but at least
46    documented in a comment in <machine/setjmp.h>! */
47 
48 #define JB_ELEMENT_SIZE 4
49 
50 #define JB_ONSSTACK 0
51 #define JB_SIGMASK 1
52 #define JB_SP 2
53 #define JB_PC 3
54 #define JB_PSL 4
55 #define JB_D2 5
56 #define JB_D3 6
57 #define JB_D4 7
58 #define JB_D5 8
59 #define JB_D6 9
60 #define JB_D7 10
61 #define JB_A2 11
62 #define JB_A3 12
63 #define JB_A4 13
64 #define JB_A5 14
65 #define JB_A6 15
66