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.
5 This file is part of GDB.
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.
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.
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. */
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. */
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 */
50 #define M68K_NUM_REGS (M68K_FPI_REGNUM + 1)
52 /* Size of the largest register. */
53 #define M68K_MAX_REGISTER_SIZE 12
55 struct m68k_sigtramp_info
57 /* Address of sigcontext. */
58 CORE_ADDR sigcontext_addr
;
60 /* Offset of registers in `struct sigcontext'. */
64 /* Convention for returning structures. */
68 pcc_struct_return
, /* Return "short" structures in memory. */
69 reg_struct_return
/* Return "short" structures in registers. */
72 /* Target-dependent structure in gdbarch. */
75 /* Offset to PC value in the jump buffer. If this is negative,
76 longjmp support will be disabled. */
78 /* The size of each entry in the jump buffer. */
81 /* Get info about sigtramp. */
82 struct m68k_sigtramp_info (*get_sigtramp_info
) (struct frame_info
*);
84 /* Convention for returning structures. */
85 enum struct_return struct_return
;
88 #endif /* M68K_TDEP_H */