+struct gdbarch_tdep
+{
+ /* Non-NULL when debugging from a core file. Provides the offset
+ where each general-purpose register is stored inside the associated
+ core file section. */
+ struct sh_corefile_regmap *core_gregmap;
+ int sizeof_gregset;
+ /* Non-NULL when debugging from a core file and when FP registers are
+ available. Provides the offset where each FP register is stored
+ inside the associated core file section. */
+ struct sh_corefile_regmap *core_fpregmap;
+ int sizeof_fpregset;
+ /* ISA-specific data types. */
+ struct type *sh_littlebyte_bigword_type;
+};
+
+extern const struct regset sh_corefile_gregset;
+
+void sh_corefile_supply_regset (const struct regset *regset,
+ struct regcache *regcache,
+ int regnum, const void *regs, size_t len);
+void sh_corefile_collect_regset (const struct regset *regset,
+ const struct regcache *regcache,
+ int regnum, void *regs, size_t len);