2004-05-01 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gdb / m68k-tdep.h
CommitLineData
748894bf
MK
1/* Target-dependent code for the Motorola 68000 series.
2
3 Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1999, 2000,
4 2001, 2003, 2004 Free Software Foundation, Inc.
32eeb91a
AS
5
6 This file is part of GDB.
7
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
12
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place - Suite 330,
21 Boston, MA 02111-1307, USA. */
22
23#ifndef M68K_TDEP_H
24#define M68K_TDEP_H
25
8de307e0
AS
26struct frame_info;
27
748894bf 28/* Register numbers of various important registers. */
32eeb91a 29
748894bf 30enum m68k_regnum
32eeb91a
AS
31{
32 M68K_D0_REGNUM = 0,
8de307e0 33 M68K_D1_REGNUM = 1,
32eeb91a
AS
34 M68K_A0_REGNUM = 8,
35 M68K_A1_REGNUM = 9,
748894bf
MK
36 M68K_FP_REGNUM = 14, /* Address of executing stack frame. */
37 M68K_SP_REGNUM = 15, /* Address of top of stack. */
38 M68K_PS_REGNUM = 16, /* Processor status. */
39 M68K_PC_REGNUM = 17, /* Program counter. */
40 M68K_FP0_REGNUM = 18, /* Floating point register 0. */
41 M68K_FPC_REGNUM = 26, /* 68881 control register. */
42 M68K_FPS_REGNUM = 27, /* 68881 status register. */
32eeb91a
AS
43 M68K_FPI_REGNUM = 28
44};
45
748894bf
MK
46/* Number of machine registers. */
47#define M68K_NUM_REGS (M68K_FPI_REGNUM + 1)
8de307e0
AS
48
49/* Size of the largest register. */
50#define M68K_MAX_REGISTER_SIZE 12
51
52struct m68k_sigtramp_info
53{
54 /* Address of sigcontext. */
55 CORE_ADDR sigcontext_addr;
56
57 /* Offset of registers in `struct sigcontext'. */
58 int *sc_reg_offset;
59};
60
c481dac7
AS
61/* Convention for returning structures. */
62
63enum struct_return
64{
65 pcc_struct_return, /* Return "short" structures in memory. */
66 reg_struct_return /* Return "short" structures in registers. */
67};
68
eb2e12d7 69/* Target-dependent structure in gdbarch. */
748894bf 70
eb2e12d7
AS
71struct gdbarch_tdep
72{
73 /* Offset to PC value in the jump buffer. If this is negative,
74 longjmp support will be disabled. */
75 int jb_pc;
76 /* The size of each entry in the jump buffer. */
77 size_t jb_elt_size;
8de307e0
AS
78
79 /* Get info about sigtramp. */
80 struct m68k_sigtramp_info (*get_sigtramp_info) (struct frame_info *);
c481dac7
AS
81
82 /* Convention for returning structures. */
83 enum struct_return struct_return;
eb2e12d7
AS
84};
85
748894bf 86#endif /* m68k-tdep.h */
This page took 0.160481 seconds and 4 git commands to generate.