summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2001-11-17 20:21:09 +0000
committerDaniel Jacobowitz <drow@false.org>2001-11-17 20:21:09 +0000
commitb0677c2eb2c7912e242107856de9b0f6c3acd717 (patch)
treed9e15a8d6c76f6829579fa7ad6484d17ae96aec5
parent920e41776568bb6c321006d81cccde1e43bc7adb (diff)
downloadppe42-binutils-b0677c2eb2c7912e242107856de9b0f6c3acd717.tar.gz
ppe42-binutils-b0677c2eb2c7912e242107856de9b0f6c3acd717.zip
* sparc-linux-nat.c (fill_gregset): Replace read_register_gen
with regcache_collect. (fill_fpregset): Likewise.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/sparc-linux-nat.c18
2 files changed, 15 insertions, 9 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 5e93a69be3..8bc8cc8108 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
2001-11-17 Daniel Jacobowitz <drow@mvista.com>
+ * sparc-linux-nat.c (fill_gregset): Replace read_register_gen
+ with regcache_collect.
+ (fill_fpregset): Likewise.
+
+2001-11-17 Daniel Jacobowitz <drow@mvista.com>
+
* 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 f0cbd79419..eb1fcfa4e5 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);
}
OpenPOWER on IntegriCloud