void mips_fbsd_collect_gregs (const struct regcache *regcache, int regnum, void *gregs, size_t regsize) { gdb_byte *regs = (gdb_byte *) gregs; int i; for (i = 0; i <= MIPS_PC_REGNUM; i++) if (regnum == i || regnum == -1) mips_fbsd_collect_reg (regcache, i, regs + i * regsize, regsize); }
void mips_fbsd_collect_gregs (const struct regcache *regcache, int regnum, void *gregs, size_t regsize) { struct gdbarch *gdbarch = regcache->arch (); gdb_byte *regs = (gdb_byte *) gregs; int i; for (i = 0; i <= mips_regnum (gdbarch)->pc; i++) if (regnum == i || regnum == -1) mips_fbsd_collect_reg (regcache, i, regs + i * regsize, regsize); }
void mips_fbsd_collect_fpregs (const struct regcache *regcache, int regnum, void *fpregs, size_t regsize) { gdb_byte *regs = (gdb_byte *) fpregs; int i; for (i = MIPS_FP0_REGNUM; i <= MIPS_FSR_REGNUM; i++) if (regnum == i || regnum == -1) mips_fbsd_collect_reg (regcache, i, regs + (i - MIPS_FP0_REGNUM) * regsize, regsize); }
void mips_fbsd_collect_fpregs (const struct regcache *regcache, int regnum, void *fpregs, size_t regsize) { struct gdbarch *gdbarch = regcache->arch (); gdb_byte *regs = (gdb_byte *) fpregs; int i, fp0num; fp0num = mips_regnum (gdbarch)->fp0; for (i = 0; i < 32; i++) if (regnum == fp0num + i || regnum == -1) mips_fbsd_collect_reg (regcache, fp0num + i, regs + i * regsize, regsize); if (regnum == mips_regnum (gdbarch)->fp_control_status || regnum == -1) mips_fbsd_collect_reg (regcache, mips_regnum (gdbarch)->fp_control_status, regs + 32 * regsize, regsize); if (regnum == mips_regnum (gdbarch)->fp_implementation_revision || regnum == -1) mips_fbsd_collect_reg (regcache, mips_regnum (gdbarch)->fp_implementation_revision, regs + 33 * regsize, regsize); }