aboutsummaryrefslogtreecommitdiff
path: root/gdb/mips-linux-tdep.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2007-05-06 14:33:21 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2007-05-06 14:33:21 +0000
commit9eefc95f4bc46ea6ea7c726461daceac07e53315 (patch)
tree2a6b1167468ea0ab7df93d30dbba9effafc3c51c /gdb/mips-linux-tdep.c
parent7f7fe91e15ea6d4eb8e1f600ce962b944f5df2c0 (diff)
downloadgdb-9eefc95f4bc46ea6ea7c726461daceac07e53315.zip
gdb-9eefc95f4bc46ea6ea7c726461daceac07e53315.tar.gz
gdb-9eefc95f4bc46ea6ea7c726461daceac07e53315.tar.bz2
* gdbcore.h (struct regcache): Add forward declaration.
(struct core_fns): Add REGCACHE argument to core_read_registers callback. * corelow.c (get_core_register_section): Add REGCACHE argument, use it instead of current_regcache, pass it to core_read_registers callback. (get_core_registers): Add current_regcache as parameter to get_core_register_section calls. * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument, use it instead of current_regcache. * armnbsd-nat.c (fetch_core_registers): Likewise. (fetch_elfcore_registers): Likewise. * core-regset.c (fetch_core_registers): Likewise. * cris-tdep.c (fetch_core_registers): Likewise. * irix5-nat.c (fetch_core_registers): Likewise. * m68klinux-nat.c (fetch_core_registers): Likewise. * mips-linux-tdep.c (fetch_core_registers): Likewise. * win32-nat.c (fetch_elf_core_registers): Likewise.
Diffstat (limited to 'gdb/mips-linux-tdep.c')
-rw-r--r--gdb/mips-linux-tdep.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/gdb/mips-linux-tdep.c b/gdb/mips-linux-tdep.c
index 2407cc7..4ca20ac 100644
--- a/gdb/mips-linux-tdep.c
+++ b/gdb/mips-linux-tdep.c
@@ -472,7 +472,8 @@ mips64_fill_fpregset (const struct regcache *regcache,
regsets, until multi-arch core support is ready. */
static void
-fetch_core_registers (char *core_reg_sect, unsigned core_reg_size,
+fetch_core_registers (struct regcache *regcache,
+ char *core_reg_sect, unsigned core_reg_size,
int which, CORE_ADDR reg_addr)
{
mips_elf_gregset_t gregset;
@@ -485,13 +486,13 @@ fetch_core_registers (char *core_reg_sect, unsigned core_reg_size,
if (core_reg_size == sizeof (gregset))
{
memcpy ((char *) &gregset, core_reg_sect, sizeof (gregset));
- mips_supply_gregset (current_regcache,
+ mips_supply_gregset (regcache,
(const mips_elf_gregset_t *) &gregset);
}
else if (core_reg_size == sizeof (gregset64))
{
memcpy ((char *) &gregset64, core_reg_sect, sizeof (gregset64));
- mips64_supply_gregset (current_regcache,
+ mips64_supply_gregset (regcache,
(const mips64_elf_gregset_t *) &gregset64);
}
else
@@ -504,14 +505,14 @@ fetch_core_registers (char *core_reg_sect, unsigned core_reg_size,
if (core_reg_size == sizeof (fpregset))
{
memcpy ((char *) &fpregset, core_reg_sect, sizeof (fpregset));
- mips_supply_fpregset (current_regcache,
+ mips_supply_fpregset (regcache,
(const mips_elf_fpregset_t *) &fpregset);
}
else if (core_reg_size == sizeof (fpregset64))
{
memcpy ((char *) &fpregset64, core_reg_sect,
sizeof (fpregset64));
- mips64_supply_fpregset (current_regcache,
+ mips64_supply_fpregset (regcache,
(const mips64_elf_fpregset_t *) &fpregset64);
}
else