aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2007-05-06 14:27:39 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2007-05-06 14:27:39 +0000
commitc6b4e5a265aa3da4ed24e2198358b03f37dce595 (patch)
treee01c164fb3c1a74ec49b804f1ef46542bcf08401 /gdb
parentd683e2b7cfb74531e134a73d9efcea87d16e3e7e (diff)
downloadgdb-c6b4e5a265aa3da4ed24e2198358b03f37dce595.zip
gdb-c6b4e5a265aa3da4ed24e2198358b03f37dce595.tar.gz
gdb-c6b4e5a265aa3da4ed24e2198358b03f37dce595.tar.bz2
* cris-tdep.c (supply_gregset): Rename to ...
(cris_supply_gregset): ... this. Add REGCACHE parameter. Use it instead of current_regcache. (fetch_core_registers): Update call. Pass current_regcache.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/cris-tdep.c8
2 files changed, 11 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 640558a..65efbf4 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,12 @@
2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
+ * cris-tdep.c (supply_gregset): Rename to ...
+ (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
+ instead of current_regcache.
+ (fetch_core_registers): Update call. Pass current_regcache.
+
+2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
+
* arnmnbsd-nat.c (supply_gregset): Rename to ...
(arm_supply_gregset): ... this. Add REGCACHE parameter.
Use it instead of current_regcache.
diff --git a/gdb/cris-tdep.c b/gdb/cris-tdep.c
index 9973f0f..fed61a7 100644
--- a/gdb/cris-tdep.c
+++ b/gdb/cris-tdep.c
@@ -3856,7 +3856,7 @@ typedef elf_greg_t crisv32_elf_gregset_t[CRISV32_ELF_NGREG];
/* Unpack an elf_gregset_t into GDB's register cache. */
static void
-supply_gregset (elf_gregset_t *gregsetp)
+cris_supply_gregset (struct regcache *regcache, elf_gregset_t *gregsetp)
{
struct gdbarch_tdep *tdep = gdbarch_tdep (current_gdbarch);
int i;
@@ -3867,7 +3867,7 @@ supply_gregset (elf_gregset_t *gregsetp)
knows about the actual size of each register so that's no problem. */
for (i = 0; i < NUM_GENREGS + NUM_SPECREGS; i++)
{
- regcache_raw_supply (current_regcache, i, (char *)&regp[i]);
+ regcache_raw_supply (regcache, i, (char *)&regp[i]);
}
if (tdep->cris_version == 32)
@@ -3875,7 +3875,7 @@ supply_gregset (elf_gregset_t *gregsetp)
/* Needed to set pseudo-register PC for CRISv32. */
/* FIXME: If ERP is in a delay slot at this point then the PC will
be wrong. Issue a warning to alert the user. */
- regcache_raw_supply (current_regcache, PC_REGNUM,
+ regcache_raw_supply (regcache, PC_REGNUM,
(char *)&regp[ERP_REGNUM]);
if (*(char *)&regp[ERP_REGNUM] & 0x1)
@@ -3903,7 +3903,7 @@ fetch_core_registers (char *core_reg_sect, unsigned core_reg_size,
else
{
memcpy (&gregset, core_reg_sect, sizeof (gregset));
- supply_gregset (&gregset);
+ cris_supply_gregset (current_regcache, &gregset);
}
default: