From 3d171c85e745078ae90f558ff156122855f458c1 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Fri, 24 Dec 2004 14:45:32 +0000 Subject: * i386-tdep.h (i386_collect_gregset): New prototype. * i386-nto-tdep.c (i386_nto_target): Move variable. Add comment. (i386nto_gregset_reg_offset): Rename frame regmap. (nto_reg_offset): Tweak comment. Use ARRAY_SIZE. (i386nto_supply_gregset): Implement using register set support. (i386nto_supply_regset): Remove redundant comment. (i386nto_init_abi): Initialize TDEP->gregset_reg_offset, TDEP->gregset_num_regs and TDEP->sizeof_gregset. * nto-tdep.c (fetch_core_registers): Remove function. (regset_core_fns): Remove structure. (_initialize_nto_tdep): Don't call deprecated_add_core_fns. --- gdb/i386-tdep.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gdb/i386-tdep.h') diff --git a/gdb/i386-tdep.h b/gdb/i386-tdep.h index 29f2f27ecec..8e51a3aa843 100644 --- a/gdb/i386-tdep.h +++ b/gdb/i386-tdep.h @@ -166,6 +166,14 @@ extern void i386_supply_gregset (const struct regset *regset, struct regcache *regcache, int regnum, const void *gregs, size_t len); +/* Collect register REGNUM from the register cache REGCACHE and store + it in the buffer specified by GREGS and LEN as described by the + general-purpose register set REGSET. If REGNUM is -1, do this for + all registers in REGSET. */ +extern void i386_collect_gregset (const struct regset *regset, + const struct regcache *regcache, + int regnum, void *gregs, size_t len); + /* Return the appropriate register set for the core section identified by SECT_NAME and SECT_SIZE. */ extern const struct regset * -- cgit v1.2.1