GDB (API)
|
00001 /* GNU/Linux on TI C6x target support. 00002 Copyright (C) 2011-2013 Free Software Foundation, Inc. 00003 Contributed by Yao Qi <yao@codesourcery.com> 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 { 00022 TIC6X_A4_REGNUM = 4, 00023 TIC6X_A5_REGNUM = 5, 00024 TIC6X_FP_REGNUM = 15, /* Frame Pointer: A15 */ 00025 TIC6X_B0_REGNUM = 16, 00026 TIC6X_RA_REGNUM = 19, /* Return address: B3 */ 00027 TIC6X_B4_REGNUM = 20, 00028 TIC6X_B5_REGNUM = 21, 00029 TIC6X_DP_REGNUM = 30, /* Data Page Pointer: B14 */ 00030 TIC6X_SP_REGNUM = 31, /* Stack Pointer: B15 */ 00031 TIC6X_CSR_REGNUM = 32, 00032 TIC6X_PC_REGNUM = 33, 00033 TIC6X_NUM_CORE_REGS = 33, /* The number of core registers */ 00034 TIC6X_RILC_REGNUM = 68, 00035 TIC6X_NUM_REGS /* The number of registers */ 00036 }; 00037 00038 #define TIC6X_INST_SWE 0x10000000 00039 00040 extern const gdb_byte tic6x_bkpt_illegal_opcode_be[]; 00041 extern const gdb_byte tic6x_bkpt_illegal_opcode_le[]; 00042 00043 /* Target-dependent structure in gdbarch. */ 00044 struct gdbarch_tdep 00045 { 00046 /* Return the expected next PC if FRAME is stopped at a syscall 00047 instruction. */ 00048 CORE_ADDR (*syscall_next_pc) (struct frame_info *frame); 00049 00050 const gdb_byte *breakpoint; /* Breakpoint instruction. */ 00051 00052 int has_gp; /* Has general purpose registers A16 - A31 and B16 - B31. */ 00053 };