diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2007-05-06 14:33:21 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2007-05-06 14:33:21 +0000 |
commit | 9eefc95f4bc46ea6ea7c726461daceac07e53315 (patch) | |
tree | 2a6b1167468ea0ab7df93d30dbba9effafc3c51c /gdb/alpha-nat.c | |
parent | 7f7fe91e15ea6d4eb8e1f600ce962b944f5df2c0 (diff) | |
download | gdb-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/alpha-nat.c')
-rw-r--r-- | gdb/alpha-nat.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/alpha-nat.c b/gdb/alpha-nat.c index bea5bcd..9cede3c 100644 --- a/gdb/alpha-nat.c +++ b/gdb/alpha-nat.c @@ -47,7 +47,8 @@ */ static void -fetch_osf_core_registers (char *core_reg_sect, unsigned core_reg_size, +fetch_osf_core_registers (struct regcache *regcache, + char *core_reg_sect, unsigned core_reg_size, int which, CORE_ADDR reg_addr) { int regno; @@ -90,7 +91,7 @@ fetch_osf_core_registers (char *core_reg_sect, unsigned core_reg_size, { if (CANNOT_FETCH_REGISTER (regno)) { - regcache_raw_supply (current_regcache, regno, NULL); + regcache_raw_supply (regcache, regno, NULL); continue; } addr = 8 * core_reg_mapping[regno]; @@ -99,7 +100,7 @@ fetch_osf_core_registers (char *core_reg_sect, unsigned core_reg_size, /* ??? UNIQUE is a new addition. Don't generate an error. */ if (regno == ALPHA_UNIQUE_REGNUM) { - regcache_raw_supply (current_regcache, regno, NULL); + regcache_raw_supply (regcache, regno, NULL); continue; } if (bad_reg < 0) @@ -107,7 +108,7 @@ fetch_osf_core_registers (char *core_reg_sect, unsigned core_reg_size, } else { - regcache_raw_supply (current_regcache, regno, core_reg_sect + addr); + regcache_raw_supply (regcache, regno, core_reg_sect + addr); } } if (bad_reg >= 0) |