28 #include <sys/procfs.h> 41 #define M32R_LINUX_NUM_REGS (M32R_NUM_REGS - 1) 46 4, 5, 6, 7, 0, 1, 2, 8,
47 9, 10, 11, 12, 13, 24, 25, 23,
48 19, 19, 26, 23, 22, 20, 16, 15
52 #define BBPSW_REGMAP 21 57 #define GETREGS_SUPPLIES(regno) (0 <= (regno) \ 58 && (regno) <= M32R_LINUX_NUM_REGS) 71 const elf_greg_t *regp = (
const elf_greg_t *) gregsetp;
73 unsigned long psw, bbpsw;
85 regval = ((0x00c1 & bbpsw) << 8) | ((0xc100 & psw) >> 8);
88 regval = ((psw >> 8) & 1);
91 regval = *(regp +
regmap[i]);
97 else if (psw & 0x8000)
124 elf_gregset_t * gregsetp,
int regno)
126 elf_greg_t *regp = (elf_greg_t *) gregsetp;
128 unsigned long psw, bbpsw, tmp;
135 if (regno != -1 && regno != i)
146 else if (psw & 0x8000)
210 _(
"Got request for bad register number %d."), regno);
231 _(
"Got request to store bad register number %d."), regno);
void _initialize_m32r_linux_nat(void)
static constexpr ptid_t tid
static void m32r_linux_fetch_inferior_registers(struct target_ops *ops, struct regcache *regcache, int regno)
ptid_t regcache_get_ptid(const struct regcache *regcache)
void internal_error(const char *file, int line, const char *fmt,...)
#define M32R_LINUX_NUM_REGS
static void store_regs(const struct regcache *regcache, int tid, int regno)
void fill_gregset(const struct regcache *regcache, elf_gregset_t *gregsetp, int regno)
GDB_FPREGSET_T gdb_fpregset_t
#define GETREGS_SUPPLIES(regno)
static void m32r_linux_store_inferior_registers(struct target_ops *ops, struct regcache *regcache, int regno)
void linux_nat_add_target(struct target_ops *t)
struct target_ops * linux_target(void)
void supply_fpregset(struct regcache *regcache, const gdb_fpregset_t *fpregs)
void(* to_fetch_registers)(struct target_ops *, struct regcache *, int) TARGET_DEFAULT_IGNORE()
void fill_fpregset(const struct regcache *regcache, gdb_fpregset_t *fpregs, int regno)
void void void void void void void void void perror_with_name(const char *string) ATTRIBUTE_NORETURN
void supply_gregset(struct regcache *regcache, const elf_gregset_t *gregsetp)
void regcache_raw_supply(struct regcache *regcache, int regnum, const void *buf)
static void fetch_regs(struct regcache *regcache, int tid)
void regcache_raw_collect(const struct regcache *regcache, int regnum, void *buf)
pid_t get_ptrace_pid(ptid_t ptid)
void(* to_store_registers)(struct target_ops *, struct regcache *, int) TARGET_DEFAULT_NORETURN(noprocess())