From: Daniel Jacobowitz Date: Sat, 17 Nov 2001 20:21:09 +0000 (+0000) Subject: * sparc-linux-nat.c (fill_gregset): Replace read_register_gen X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b0677c2eb2c7912e242107856de9b0f6c3acd717;p=binutils-gdb.git * sparc-linux-nat.c (fill_gregset): Replace read_register_gen with regcache_collect. (fill_fpregset): Likewise. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5e93a69be36..8bc8cc81089 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2001-11-17 Daniel Jacobowitz + + * sparc-linux-nat.c (fill_gregset): Replace read_register_gen + with regcache_collect. + (fill_fpregset): Likewise. + 2001-11-17 Daniel Jacobowitz * Makefile.in: Add mips-linux-nat.c, mips-linux-tdep.c, diff --git a/gdb/sparc-linux-nat.c b/gdb/sparc-linux-nat.c index f0cbd794191..eb1fcfa4e5a 100644 --- a/gdb/sparc-linux-nat.c +++ b/gdb/sparc-linux-nat.c @@ -56,22 +56,22 @@ fill_gregset (elf_gregset_t *gregsetp, int regno) for (i = G0_REGNUM; i <= I7_REGNUM; i++) if (regno == -1 || regno == i) - read_register_gen (i, (char *) (regp + (i - G0_REGNUM))); + regcache_collect (i, regp + (i - G0_REGNUM)); if (regno == -1 || regno == PS_REGNUM) - read_register_gen (PS_REGNUM, (char *) (regp + 32)); + regcache_collect (PS_REGNUM, regp + 32); if (regno == -1 || regno == PC_REGNUM) - read_register_gen (PC_REGNUM, (char *) (regp + 33)); + regcache_collect (PC_REGNUM, regp + 33); if (regno == -1 || regno == NPC_REGNUM) - read_register_gen (NPC_REGNUM, (char *) (regp + 34)); + regcache_collect (NPC_REGNUM, regp + 34); if (regno == -1 || regno == Y_REGNUM) - read_register_gen (Y_REGNUM, (char *) (regp + 35)); + regcache_collect (Y_REGNUM, regp + 35); if (regno == -1 || regno == WIM_REGNUM) - read_register_gen (WIM_REGNUM, (char *) (regp + 36)); + regcache_collect (WIM_REGNUM, regp + 36); if (regno == -1 || regno == TBR_REGNUM) - read_register_gen (TBR_REGNUM, (char *) (regp + 37)); + regcache_collect (TBR_REGNUM, regp + 37); } void @@ -92,8 +92,8 @@ fill_fpregset (elf_fpregset_t *fpregsetp, int regno) for (i = FP0_REGNUM; i < FP0_REGNUM + 32; i++) if (regno == -1 || regno == i) - read_register_gen (i, (char *) &fpregsetp->pr_fr.pr_regs[i - FP0_REGNUM]); + regcache_collect (i, &fpregsetp->pr_fr.pr_regs[i - FP0_REGNUM]); if (regno == -1 || regno == FPS_REGNUM) - read_register_gen (FPS_REGNUM, (char *) &fpregsetp->pr_fsr); + regcache_collect (FPS_REGNUM, &fpregsetp->pr_fsr); }