* gdbarch.sh (regset_from_core_section): New method.

(struct regset): Declare opaque.
* gdbarch.c, gdbarch.h: Regenerated.
This commit is contained in:
Mark Kettenis
2003-10-11 12:52:30 +00:00
parent 9e126dc094
commit 6ce6d90f6a
4 changed files with 54 additions and 0 deletions

View File

@@ -43,6 +43,7 @@ struct objfile;
struct minimal_symbol;
struct regcache;
struct reggroup;
struct regset;
struct disassemble_info;
extern struct gdbarch *current_gdbarch;
@@ -2365,6 +2366,15 @@ extern void set_gdbarch_fetch_pointer_argument (struct gdbarch *gdbarch, gdbarch
#define FETCH_POINTER_ARGUMENT(frame, argi, type) (gdbarch_fetch_pointer_argument (current_gdbarch, frame, argi, type))
#endif
/* Return the appropriate register set for a core file section with
name SECT_NAME and size SECT_SIZE. */
extern int gdbarch_regset_from_core_section_p (struct gdbarch *gdbarch);
typedef const struct regset * (gdbarch_regset_from_core_section_ftype) (struct gdbarch *gdbarch, const char *sect_name, size_t sect_size);
extern const struct regset * gdbarch_regset_from_core_section (struct gdbarch *gdbarch, const char *sect_name, size_t sect_size);
extern void set_gdbarch_regset_from_core_section (struct gdbarch *gdbarch, gdbarch_regset_from_core_section_ftype *regset_from_core_section);
extern struct gdbarch_tdep *gdbarch_tdep (struct gdbarch *gdbarch);