From b0677c2eb2c7912e242107856de9b0f6c3acd717 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Sat, 17 Nov 2001 20:21:09 +0000 Subject: [PATCH] * sparc-linux-nat.c (fill_gregset): Replace read_register_gen with regcache_collect. (fill_fpregset): Likewise. --- gdb/ChangeLog | 6 ++++++ gdb/sparc-linux-nat.c | 18 +++++++++--------- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5e93a69..8bc8cc8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,11 @@ 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, and sparc-linux-nat.c to ALLDEPFILES. Add dependencies. * config/sparc/linux.mh: Add sparc-linux-nat.o to NATDEPFILES. diff --git a/gdb/sparc-linux-nat.c b/gdb/sparc-linux-nat.c index f0cbd79..eb1fcfa 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); } -- 2.7.4