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 | 98478800a729231ac461b20b8114cfdd775287b2 (patch) | |
tree | 3f95d94751d880569a2ff7e4ce17c99bde074846 /gdb/irix5-nat.c | |
parent | 4926101936f9c2286daf6bb70155087ba5d135b2 (diff) | |
download | gdb-98478800a729231ac461b20b8114cfdd775287b2.tar.gz |
* 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/irix5-nat.c')
-rw-r--r-- | gdb/irix5-nat.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gdb/irix5-nat.c b/gdb/irix5-nat.c index 907764c085d..880568e96dd 100644 --- a/gdb/irix5-nat.c +++ b/gdb/irix5-nat.c @@ -40,7 +40,8 @@ #include "gregset.h" #include "mips-tdep.h" -static void fetch_core_registers (char *, unsigned int, int, CORE_ADDR); +static void fetch_core_registers (struct regcache *, char *, + unsigned int, int, CORE_ADDR); /* Size of elements in jmpbuf */ @@ -242,7 +243,8 @@ get_longjmp_target (CORE_ADDR *pc) REG_ADDR is also unused. */ 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) { char *srcp = core_reg_sect; @@ -259,7 +261,7 @@ fetch_core_registers (char *core_reg_sect, unsigned core_reg_size, for (regno = 0; regno < NUM_REGS; regno++) { - regcache_raw_supply (current_regcache, regno, srcp); + regcache_raw_supply (regcache, regno, srcp); srcp += regsize; } } |