summaryrefslogtreecommitdiff
path: root/gdb/gdbcore.h
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
commit98478800a729231ac461b20b8114cfdd775287b2 (patch)
tree3f95d94751d880569a2ff7e4ce17c99bde074846 /gdb/gdbcore.h
parent4926101936f9c2286daf6bb70155087ba5d135b2 (diff)
downloadgdb-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/gdbcore.h')
-rw-r--r--gdb/gdbcore.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/gdb/gdbcore.h b/gdb/gdbcore.h
index ea2411e48dc..8aa6b369b86 100644
--- a/gdb/gdbcore.h
+++ b/gdb/gdbcore.h
@@ -26,6 +26,7 @@
#define GDBCORE_H 1
struct type;
+struct regcache;
#include "bfd.h"
@@ -168,8 +169,8 @@ struct core_fns
int (*core_sniffer) (struct core_fns *, bfd *);
- /* Extract the register values out of the core file and store them where
- `read_register' will find them.
+ /* Extract the register values out of the core file and supply them
+ into REGCACHE.
CORE_REG_SECT points to the register values themselves, read into
memory.
@@ -189,7 +190,8 @@ struct core_fns
registers in a large upage-plus-stack ".reg" section. Original upage
address X is at location core_reg_sect+x+reg_addr. */
- void (*core_read_registers) (char *core_reg_sect,
+ void (*core_read_registers) (struct regcache *regcache,
+ char *core_reg_sect,
unsigned core_reg_size,
int which, CORE_ADDR reg_addr);