Commit | Line | Data |
---|---|---|
e02147b1 MS |
1 | /* Target-dependent interface for Matsushita MN10300 for GDB, the GNU debugger. |
2 | ||
3 | Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 Free | |
4 | Software Foundation, Inc. | |
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 | ||
aac71672 MS |
23 | enum { |
24 | E_D0_REGNUM = 0, | |
25 | E_D1_REGNUM = 1, | |
26 | E_D2_REGNUM = 2, | |
27 | E_D3_REGNUM = 3, | |
28 | E_A0_REGNUM = 4, | |
29 | E_A1_REGNUM = 5, | |
30 | E_A2_REGNUM = 6, | |
31 | E_A3_REGNUM = 7, | |
32 | E_SP_REGNUM = 8, | |
33 | E_PC_REGNUM = 9, | |
34 | E_MDR_REGNUM = 10, | |
35 | E_PSW_REGNUM = 11, | |
36 | E_LIR_REGNUM = 12, | |
37 | E_LAR_REGNUM = 13, | |
38 | E_MDRQ_REGNUM = 14, | |
39 | E_E0_REGNUM = 15, | |
40 | E_E1_REGNUM = 16, | |
41 | E_E2_REGNUM = 17, | |
42 | E_E3_REGNUM = 18, | |
43 | E_E4_REGNUM = 19, | |
44 | E_E5_REGNUM = 20, | |
45 | E_E6_REGNUM = 21, | |
46 | E_E7_REGNUM = 22, | |
47 | E_MCRH_REGNUM = 26, | |
48 | E_MCRL_REGNUM = 27, | |
49 | E_MCVF_REGNUM = 28, | |
50 | E_NUM_REGS = 32 | |
51 | }; | |
52 | ||
e02147b1 MS |
53 | /* mn10300 private data */ |
54 | struct gdbarch_tdep | |
55 | { | |
56 | int am33_mode; | |
e02147b1 MS |
57 | }; |
58 | ||
aac71672 MS |
59 | #define AM33_MODE (gdbarch_tdep (current_gdbarch)->am33_mode) |
60 | ||
61 | extern CORE_ADDR mn10300_analyze_prologue (struct frame_info *, | |
62 | void **, CORE_ADDR); | |
63 | ||
64 | extern struct trad_frame_cache *mn10300_frame_unwind_cache (struct frame_info*, | |
65 | void **); | |
66 |