GDB (API)
|
00001 /* Target-dependent interface for Matsushita MN10300 for GDB, the GNU debugger. 00002 00003 Copyright (C) 1996-2013 Free Software Foundation, Inc. 00004 00005 This file is part of GDB. 00006 00007 This program is free software; you can redistribute it and/or modify 00008 it under the terms of the GNU General Public License as published by 00009 the Free Software Foundation; either version 3 of the License, or 00010 (at your option) any later version. 00011 00012 This program is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 GNU General Public License for more details. 00016 00017 You should have received a copy of the GNU General Public License 00018 along with this program. If not, see <http://www.gnu.org/licenses/>. */ 00019 00020 enum { 00021 E_D0_REGNUM = 0, 00022 E_D1_REGNUM = 1, 00023 E_D2_REGNUM = 2, 00024 E_D3_REGNUM = 3, 00025 E_A0_REGNUM = 4, 00026 E_A1_REGNUM = 5, 00027 E_A2_REGNUM = 6, 00028 E_A3_REGNUM = 7, 00029 E_SP_REGNUM = 8, 00030 E_PC_REGNUM = 9, 00031 E_MDR_REGNUM = 10, 00032 E_PSW_REGNUM = 11, 00033 E_LIR_REGNUM = 12, 00034 E_LAR_REGNUM = 13, 00035 E_MDRQ_REGNUM = 14, 00036 E_E0_REGNUM = 15, 00037 E_E1_REGNUM = 16, 00038 E_E2_REGNUM = 17, 00039 E_E3_REGNUM = 18, 00040 E_E4_REGNUM = 19, 00041 E_E5_REGNUM = 20, 00042 E_E6_REGNUM = 21, 00043 E_E7_REGNUM = 22, 00044 E_E8_REGNUM = 23, 00045 E_E9_REGNUM = 24, 00046 E_E10_REGNUM = 25, 00047 E_MCRH_REGNUM = 26, 00048 E_MCRL_REGNUM = 27, 00049 E_MCVF_REGNUM = 28, 00050 E_FPCR_REGNUM = 29, 00051 E_FS0_REGNUM = 32 00052 }; 00053 00054 enum movm_register_bits { 00055 movm_exother_bit = 0x01, 00056 movm_exreg1_bit = 0x02, 00057 movm_exreg0_bit = 0x04, 00058 movm_other_bit = 0x08, 00059 movm_a3_bit = 0x10, 00060 movm_a2_bit = 0x20, 00061 movm_d3_bit = 0x40, 00062 movm_d2_bit = 0x80 00063 }; 00064 00065 /* Values for frame_info.status. */ 00066 00067 enum frame_kind { 00068 MY_FRAME_IN_SP = 0x1, 00069 MY_FRAME_IN_FP = 0x2, 00070 NO_MORE_FRAMES = 0x4 00071 }; 00072 00073 /* mn10300 private data. */ 00074 struct gdbarch_tdep 00075 { 00076 int am33_mode; 00077 }; 00078 00079 #define AM33_MODE(gdbarch) (gdbarch_tdep (gdbarch)->am33_mode)