GDB (xrefs)
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
/tmp/gdb-7.10/gdb/tic6x-tdep.h
Go to the documentation of this file.
1
/* GNU/Linux on TI C6x target support.
2
Copyright (C) 2011-2015 Free Software Foundation, Inc.
3
Contributed by Yao Qi <yao@codesourcery.com>
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
{
22
TIC6X_A4_REGNUM
= 4,
23
TIC6X_A5_REGNUM
= 5,
24
TIC6X_FP_REGNUM
= 15,
/* Frame Pointer: A15 */
25
TIC6X_B0_REGNUM
= 16,
26
TIC6X_RA_REGNUM
= 19,
/* Return address: B3 */
27
TIC6X_B4_REGNUM
= 20,
28
TIC6X_B5_REGNUM
= 21,
29
TIC6X_DP_REGNUM
= 30,
/* Data Page Pointer: B14 */
30
TIC6X_SP_REGNUM
= 31,
/* Stack Pointer: B15 */
31
TIC6X_CSR_REGNUM
= 32,
32
TIC6X_PC_REGNUM
= 33,
33
TIC6X_NUM_CORE_REGS
= 33,
/* The number of core registers */
34
TIC6X_RILC_REGNUM
= 68,
35
TIC6X_NUM_REGS
/* The number of registers */
36
};
37
38
#define TIC6X_INST_SWE 0x10000000
39
40
extern
const
gdb_byte
tic6x_bkpt_illegal_opcode_be
[];
41
extern
const
gdb_byte
tic6x_bkpt_illegal_opcode_le
[];
42
43
/* Target-dependent structure in gdbarch. */
44
struct
gdbarch_tdep
45
{
46
/* Return the expected next PC if FRAME is stopped at a syscall
47
instruction. */
48
CORE_ADDR
(*
syscall_next_pc
) (
struct
frame_info
*frame);
49
50
const
gdb_byte
*
breakpoint
;
/* Breakpoint instruction. */
51
52
int
has_gp
;
/* Has general purpose registers A16 - A31 and B16 - B31. */
53
};
gdbarch_tdep::syscall_next_pc
CORE_ADDR(* syscall_next_pc)(struct frame_info *frame)
Definition:
arm-tdep.h:206
TIC6X_B5_REGNUM
Definition:
tic6x-tdep.h:28
CORE_ADDR
bfd_vma CORE_ADDR
Definition:
common-types.h:41
TIC6X_FP_REGNUM
Definition:
tic6x-tdep.h:24
tic6x_bkpt_illegal_opcode_be
const gdb_byte tic6x_bkpt_illegal_opcode_be[]
Definition:
tic6x-tdep.c:62
gdbarch_tdep
Definition:
aarch64-tdep.h:73
TIC6X_B0_REGNUM
Definition:
tic6x-tdep.h:25
gdbarch_tdep::breakpoint
const gdb_byte * breakpoint
Definition:
tic6x-tdep.h:50
TIC6X_B4_REGNUM
Definition:
tic6x-tdep.h:27
frame_info
Definition:
frame.c:76
TIC6X_SP_REGNUM
Definition:
tic6x-tdep.h:30
TIC6X_RA_REGNUM
Definition:
tic6x-tdep.h:26
TIC6X_RILC_REGNUM
Definition:
tic6x-tdep.h:34
TIC6X_PC_REGNUM
Definition:
tic6x-tdep.h:32
TIC6X_NUM_CORE_REGS
Definition:
tic6x-tdep.h:33
TIC6X_DP_REGNUM
Definition:
tic6x-tdep.h:29
TIC6X_A4_REGNUM
Definition:
tic6x-tdep.h:22
gdb_byte
bfd_byte gdb_byte
Definition:
common-types.h:38
TIC6X_NUM_REGS
Definition:
tic6x-tdep.h:35
TIC6X_CSR_REGNUM
Definition:
tic6x-tdep.h:31
tic6x_bkpt_illegal_opcode_le
const gdb_byte tic6x_bkpt_illegal_opcode_le[]
Definition:
tic6x-tdep.c:63
gdbarch_tdep::has_gp
int has_gp
Definition:
tic6x-tdep.h:52
TIC6X_A5_REGNUM
Definition:
tic6x-tdep.h:23
Generated by
1.8.10