diff options
author | Andreas Arnez <arnez@linux.vnet.ibm.com> | 2013-11-29 16:57:54 +0000 |
---|---|---|
committer | Andreas Krebbel <krebbel@linux.vnet.ibm.com> | 2014-09-30 09:14:37 +0200 |
commit | c6d41a6f5380624846daca4d9aad5988b3946cbd (patch) | |
tree | 2b96ea0f4a9284751f93a77ddbc6acd275e56b91 /gdb/sh-tdep.h | |
parent | 9845a0b521d8a9a117d37dbfdec56677dd7cdae8 (diff) | |
download | gdb-c6d41a6f5380624846daca4d9aad5988b3946cbd.zip gdb-c6d41a6f5380624846daca4d9aad5988b3946cbd.tar.gz gdb-c6d41a6f5380624846daca4d9aad5988b3946cbd.tar.bz2 |
SH: Migrate from 'regset_from_core_section' to 'iterate_over_regset_sections'
For Super-H targets, no longer define the gdbarch method
'regset_from_core_section', but the iterator method instead.
gdb/ChangeLog:
* sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
'sizeof_gregset' and 'sizeof_fpregset'.
* sh-tdep.c (sh_regset_from_core_section): Remove.
(sh_iterate_over_regset_sections): New.
(sh_gdbarch_init): Adjust gdbarch initialization.
* sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
sizeof_fpregset.
* shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
'sizeof_gregset'.
Diffstat (limited to 'gdb/sh-tdep.h')
-rw-r--r-- | gdb/sh-tdep.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/sh-tdep.h b/gdb/sh-tdep.h index 5d64c74..da96a84 100644 --- a/gdb/sh-tdep.h +++ b/gdb/sh-tdep.h @@ -95,10 +95,12 @@ struct gdbarch_tdep 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; }; extern const struct regset sh_corefile_gregset; |