* somread.c (som_symfile_offsets): Fix compilation error.
[deliverable/binutils-gdb.git] / gdb / m68k-tdep.h
CommitLineData
32eeb91a 1/* Common target dependent code for the Motorola 68000 series.
eb2e12d7 2 Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1999, 2000, 2001, 2003
32eeb91a
AS
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
8de307e0
AS
25struct frame_info;
26
32eeb91a
AS
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
34enum
35{
36 M68K_D0_REGNUM = 0,
8de307e0 37 M68K_D1_REGNUM = 1,
32eeb91a
AS
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
8de307e0
AS
50#define M68K_NUM_REGS (M68K_FPI_REGNUM + 1)
51
52/* Size of the largest register. */
53#define M68K_MAX_REGISTER_SIZE 12
54
55struct 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
eb2e12d7
AS
64/* Target-dependent structure in gdbarch. */
65struct gdbarch_tdep
66{
67 /* Offset to PC value in the jump buffer. If this is negative,
68 longjmp support will be disabled. */
69 int jb_pc;
70 /* The size of each entry in the jump buffer. */
71 size_t jb_elt_size;
8de307e0
AS
72
73 /* Get info about sigtramp. */
74 struct m68k_sigtramp_info (*get_sigtramp_info) (struct frame_info *);
eb2e12d7
AS
75};
76
32eeb91a 77#endif /* M68K_TDEP_H */
This page took 0.086841 seconds and 4 git commands to generate.