gdb/mn10300-tdep.h - gdb

Data types defined

Macros defined

Source code

  1. /* Target-dependent interface for Matsushita MN10300 for GDB, the GNU debugger.

  2.    Copyright (C) 1996-2015 Free Software Foundation, Inc.

  3.    This file is part of GDB.

  4.    This program is free software; you can redistribute it and/or modify
  5.    it under the terms of the GNU General Public License as published by
  6.    the Free Software Foundation; either version 3 of the License, or
  7.    (at your option) any later version.

  8.    This program is distributed in the hope that it will be useful,
  9.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  10.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  11.    GNU General Public License for more details.

  12.    You should have received a copy of the GNU General Public License
  13.    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */

  14. enum {
  15.   E_D0_REGNUM = 0,
  16.   E_D1_REGNUM = 1,
  17.   E_D2_REGNUM = 2,
  18.   E_D3_REGNUM = 3,
  19.   E_A0_REGNUM = 4,
  20.   E_A1_REGNUM = 5,
  21.   E_A2_REGNUM = 6,
  22.   E_A3_REGNUM = 7,
  23.   E_SP_REGNUM = 8,
  24.   E_PC_REGNUM = 9,
  25.   E_MDR_REGNUM = 10,
  26.   E_PSW_REGNUM = 11,
  27.   E_LIR_REGNUM = 12,
  28.   E_LAR_REGNUM = 13,
  29.   E_MDRQ_REGNUM = 14,
  30.   E_E0_REGNUM = 15,
  31.   E_E1_REGNUM = 16,
  32.   E_E2_REGNUM = 17,
  33.   E_E3_REGNUM = 18,
  34.   E_E4_REGNUM = 19,
  35.   E_E5_REGNUM = 20,
  36.   E_E6_REGNUM = 21,
  37.   E_E7_REGNUM = 22,
  38.   E_E8_REGNUM = 23,
  39.   E_E9_REGNUM = 24,
  40.   E_E10_REGNUM = 25,
  41.   E_MCRH_REGNUM = 26,
  42.   E_MCRL_REGNUM = 27,
  43.   E_MCVF_REGNUM = 28,
  44.   E_FPCR_REGNUM = 29,
  45.   E_FS0_REGNUM = 32
  46. };

  47. enum movm_register_bits {
  48.   movm_exother_bit = 0x01,
  49.   movm_exreg1_bit  = 0x02,
  50.   movm_exreg0_bit  = 0x04,
  51.   movm_other_bit   = 0x08,
  52.   movm_a3_bit      = 0x10,
  53.   movm_a2_bit      = 0x20,
  54.   movm_d3_bit      = 0x40,
  55.   movm_d2_bit      = 0x80
  56. };

  57. /* Values for frame_info.status.  */

  58. enum frame_kind {
  59.   MY_FRAME_IN_SP = 0x1,
  60.   MY_FRAME_IN_FP = 0x2,
  61.   NO_MORE_FRAMES = 0x4
  62. };

  63. /* mn10300 private data.  */
  64. struct gdbarch_tdep
  65. {
  66.   int am33_mode;
  67. };

  68. #define AM33_MODE(gdbarch) (gdbarch_tdep (gdbarch)->am33_mode)