gdb/score-tdep.h - gdb

Data types defined

Macros defined

Source code

  1. /* Target-dependent code for the S+core architecture, for GDB,
  2.    the GNU Debugger.

  3.    Copyright (C) 2006-2015 Free Software Foundation, Inc.

  4.    Contributed by Qinwei (qinwei@sunnorth.com.cn)
  5.    Contributed by Ching-Peng Lin (cplin@sunplus.com)

  6.    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 3 of the License, or
  10.    (at your option) any later version.

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

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

  17. #ifndef SCORE_TDEP_H
  18. #define SCORE_TDEP_H
  19. #include "math.h"

  20. enum gdb_regnum
  21. {
  22.   SCORE_SP_REGNUM = 0,
  23.   SCORE_FP_REGNUM = 2,
  24.   SCORE_RA_REGNUM = 3,
  25.   SCORE_A0_REGNUM = 4,
  26.   SCORE_AL_REGNUM = 7,
  27.   SCORE_EPC_REGNUM = 37,
  28.   SCORE_PC_REGNUM = 49,
  29. };

  30. #define SCORE_A0_REGNUM        4
  31. #define SCORE_A1_REGNUM        5
  32. #define SCORE_REGSIZE          4
  33. #define SCORE7_NUM_REGS         56
  34. #define SCORE3_NUM_REGS         50
  35. #define SCORE_BEGIN_ARG_REGNUM 4
  36. #define SCORE_LAST_ARG_REGNUM  7

  37. #define SCORE_INSTLEN          4
  38. #define SCORE16_INSTLEN        2

  39. #endif /* SCORE_TDEP_H */