GDB (xrefs)

/tmp/gdb-8.1/gdb/mn10300-tdep.h
Go to the documentation of this file.
1 /* Target-dependent interface for Matsushita MN10300 for GDB, the GNU debugger.
2
3 Copyright (C) 1996-2018 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 3 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, see <http://www.gnu.org/licenses/>. */
19
20 enum {
21 E_D0_REGNUM = 0,
22 E_D1_REGNUM = 1,
23 E_D2_REGNUM = 2,
24 E_D3_REGNUM = 3,
25 E_A0_REGNUM = 4,
26 E_A1_REGNUM = 5,
27 E_A2_REGNUM = 6,
28 E_A3_REGNUM = 7,
29 E_SP_REGNUM = 8,
30 E_PC_REGNUM = 9,
31 E_MDR_REGNUM = 10,
32 E_PSW_REGNUM = 11,
33 E_LIR_REGNUM = 12,
34 E_LAR_REGNUM = 13,
35 E_MDRQ_REGNUM = 14,
36 E_E0_REGNUM = 15,
37 E_E1_REGNUM = 16,
38 E_E2_REGNUM = 17,
39 E_E3_REGNUM = 18,
40 E_E4_REGNUM = 19,
41 E_E5_REGNUM = 20,
42 E_E6_REGNUM = 21,
43 E_E7_REGNUM = 22,
44 E_E8_REGNUM = 23,
45 E_E9_REGNUM = 24,
46 E_E10_REGNUM = 25,
47 E_MCRH_REGNUM = 26,
48 E_MCRL_REGNUM = 27,
49 E_MCVF_REGNUM = 28,
50 E_FPCR_REGNUM = 29,
51 E_FS0_REGNUM = 32
52 };
53
54 enum movm_register_bits {
55 movm_exother_bit = 0x01,
56 movm_exreg1_bit = 0x02,
57 movm_exreg0_bit = 0x04,
58 movm_other_bit = 0x08,
59 movm_a3_bit = 0x10,
60 movm_a2_bit = 0x20,
61 movm_d3_bit = 0x40,
62 movm_d2_bit = 0x80
63 };
64
65 /* Values for frame_info.status. */
66
67 enum frame_kind {
68 MY_FRAME_IN_SP = 0x1,
69 MY_FRAME_IN_FP = 0x2,
70 NO_MORE_FRAMES = 0x4
71 };
72
73 /* mn10300 private data. */
74 struct gdbarch_tdep
75 {
76 int am33_mode;
77 };
78
79 #define AM33_MODE(gdbarch) (gdbarch_tdep (gdbarch)->am33_mode)
E_E8_REGNUM
Definition: mn10300-tdep.h:44
movm_other_bit
Definition: mn10300-tdep.h:58
E_A3_REGNUM
Definition: mn10300-tdep.h:28
E_LIR_REGNUM
Definition: mn10300-tdep.h:33
NO_MORE_FRAMES
Definition: mn10300-tdep.h:70
E_SP_REGNUM
Definition: mn10300-tdep.h:29
E_FPCR_REGNUM
Definition: mn10300-tdep.h:50
gdbarch_tdep
Definition: aarch64-tdep.h:55
frame_kind
frame_kind
Definition: mn10300-tdep.h:67
E_MCRH_REGNUM
Definition: mn10300-tdep.h:47
MY_FRAME_IN_FP
Definition: mn10300-tdep.h:69
E_MCVF_REGNUM
Definition: mn10300-tdep.h:49
E_E9_REGNUM
Definition: mn10300-tdep.h:45
movm_exreg0_bit
Definition: mn10300-tdep.h:57
E_E0_REGNUM
Definition: mn10300-tdep.h:36
E_A2_REGNUM
Definition: mn10300-tdep.h:27
movm_a3_bit
Definition: mn10300-tdep.h:59
gdbarch_tdep::am33_mode
int am33_mode
Definition: mn10300-tdep.h:76
E_MDRQ_REGNUM
Definition: mn10300-tdep.h:35
movm_register_bits
movm_register_bits
Definition: mn10300-tdep.h:54
E_D1_REGNUM
Definition: mn10300-tdep.h:22
movm_d2_bit
Definition: mn10300-tdep.h:62
E_E3_REGNUM
Definition: mn10300-tdep.h:39
E_E1_REGNUM
Definition: mn10300-tdep.h:37
E_D2_REGNUM
Definition: mn10300-tdep.h:23
E_PC_REGNUM
Definition: mn10300-tdep.h:30
E_E10_REGNUM
Definition: mn10300-tdep.h:46
movm_exreg1_bit
Definition: mn10300-tdep.h:56
E_E7_REGNUM
Definition: mn10300-tdep.h:43
E_E6_REGNUM
Definition: mn10300-tdep.h:42
E_A1_REGNUM
Definition: mn10300-tdep.h:26
movm_a2_bit
Definition: mn10300-tdep.h:60
E_LAR_REGNUM
Definition: mn10300-tdep.h:34
E_FS0_REGNUM
Definition: mn10300-tdep.h:51
movm_exother_bit
Definition: mn10300-tdep.h:55
E_E2_REGNUM
Definition: mn10300-tdep.h:38
E_E4_REGNUM
Definition: mn10300-tdep.h:40
E_MCRL_REGNUM
Definition: mn10300-tdep.h:48
E_MDR_REGNUM
Definition: mn10300-tdep.h:31
movm_d3_bit
Definition: mn10300-tdep.h:61
E_D0_REGNUM
Definition: mn10300-tdep.h:21
E_A0_REGNUM
Definition: mn10300-tdep.h:25
E_D3_REGNUM
Definition: mn10300-tdep.h:24
E_PSW_REGNUM
Definition: mn10300-tdep.h:32
E_E5_REGNUM
Definition: mn10300-tdep.h:41
MY_FRAME_IN_SP
Definition: mn10300-tdep.h:68