24 #include <sys/ptrace.h>
34 #define tile_num_regs 65
38 0, 1, 2, 3, 4, 5, 6, 7,
39 8, 9, 10, 11, 12, 13, 14, 15,
40 16, 17, 18, 19, 20, 21, 22, 23,
41 24, 25, 26, 27, 28, 29, 30, 31,
42 32, 33, 34, 35, 36, 37, 38, 39,
43 40, 41, 42, 43, 44, 45, 46, 47,
44 48, 49, 50, 51, 52, 53, 54, 55,
45 -1, -1, -1, -1, -1, -1, -1, -1,
52 if (regno >= 0 && regno < 56)
63 if (regno >= 0 && regno < 56)
83 unsigned long newpc = pc;
89 #define tile_breakpoint_len 8
97 if (insn == tile_breakpoint)
111 if (tile_regmap[i] != -1)
121 if (tile_regmap[i] != -1)
129 { 0, 0, 0, -1, -1, NULL, NULL }
145 static struct regs_info regs_info =
152 static const struct regs_info *
162 unsigned int machine;
165 if (
sizeof (
void *) == 4)
167 error (
_(
"Can't debug 64-bit process with 32-bit GDBserver"));
185 (
const unsigned char *) &tile_breakpoint,
198 initialize_regsets_info (&tile_regsets_info);
struct thread_info * current_thread
void collect_register(struct regcache *regcache, int n, void *buf)
void supply_register_by_name(struct regcache *regcache, const char *name, const void *buf)
static CORE_ADDR tile_get_pc(struct regcache *regcache)
static void tile_arch_setup(void)
struct target_ops * the_target
const struct target_desc * tdesc
static uint64_t tile_breakpoint
static const struct regs_info * tile_regs_info(void)
void collect_register_by_name(struct regcache *regcache, const char *name, void *buf)
static void tile_set_pc(struct regcache *regcache, CORE_ADDR pc)
void initialize_low_arch(void)
const struct target_desc * tdesc_tilegx
static int tile_cannot_fetch_register(int regno)
static struct usrregs_info tile_usrregs_info
static struct regs_info regs_info
struct process_info * current_process(void)
const struct target_desc * tdesc_tilegx32
static void tile_store_gregset(struct regcache *regcache, const void *buf)
int linux_pid_exe_is_elf_64_file(int pid, unsigned int *machine)
void init_registers_tilegx32(void)
static int tile_cannot_store_register(int regno)
int(* read_memory)(CORE_ADDR memaddr, unsigned char *myaddr, int len)
void init_registers_tilegx(void)
static struct regset_info tile_regsets[]
#define tile_breakpoint_len
static int tile_breakpoint_at(CORE_ADDR where)
void supply_register(struct regcache *regcache, int n, const void *buf)
void error(const char *fmt,...)
static void tile_fill_gregset(struct regcache *regcache, void *buf)
static struct regsets_info tile_regsets_info