* NEWS (New native configurations): Mention NetBSD/vax.
[deliverable/binutils-gdb.git] / gdb / m68k-tdep.h
1 /* Common target dependent code for the Motorola 68000 series.
2 Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1999, 2000, 2001, 2003
3 Free Software Foundation, Inc.
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., 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
21
22 #ifndef M68K_TDEP_H
23 #define M68K_TDEP_H
24
25 struct frame_info;
26
27 /* Register numbers of various important registers.
28 Note that some of these values are "real" register numbers,
29 and correspond to the general registers of the machine,
30 and some are "phony" register numbers which are too large
31 to be actual register numbers as far as the user is concerned
32 but do serve to get the desired values when passed to read_register. */
33
34 enum
35 {
36 M68K_D0_REGNUM = 0,
37 M68K_D1_REGNUM = 1,
38 M68K_A0_REGNUM = 8,
39 M68K_A1_REGNUM = 9,
40 M68K_FP_REGNUM = 14, /* Contains address of executing stack frame */
41 M68K_SP_REGNUM = 15, /* Contains address of top of stack */
42 M68K_PS_REGNUM = 16, /* Contains processor status */
43 M68K_PC_REGNUM = 17, /* Contains program counter */
44 M68K_FP0_REGNUM = 18, /* Floating point register 0 */
45 M68K_FPC_REGNUM = 26, /* 68881 control register */
46 M68K_FPS_REGNUM = 27, /* 68881 status register */
47 M68K_FPI_REGNUM = 28
48 };
49
50 #define M68K_NUM_REGS (M68K_FPI_REGNUM + 1)
51
52 /* Size of the largest register. */
53 #define M68K_MAX_REGISTER_SIZE 12
54
55 struct m68k_sigtramp_info
56 {
57 /* Address of sigcontext. */
58 CORE_ADDR sigcontext_addr;
59
60 /* Offset of registers in `struct sigcontext'. */
61 int *sc_reg_offset;
62 };
63
64 /* Convention for returning structures. */
65
66 enum struct_return
67 {
68 pcc_struct_return, /* Return "short" structures in memory. */
69 reg_struct_return /* Return "short" structures in registers. */
70 };
71
72 /* Target-dependent structure in gdbarch. */
73 struct gdbarch_tdep
74 {
75 /* Offset to PC value in the jump buffer. If this is negative,
76 longjmp support will be disabled. */
77 int jb_pc;
78 /* The size of each entry in the jump buffer. */
79 size_t jb_elt_size;
80
81 /* Get info about sigtramp. */
82 struct m68k_sigtramp_info (*get_sigtramp_info) (struct frame_info *);
83
84 /* Convention for returning structures. */
85 enum struct_return struct_return;
86 };
87
88 #endif /* M68K_TDEP_H */
This page took 0.032047 seconds and 4 git commands to generate.