diff options
author | Andreas Arnez <arnez@linux.vnet.ibm.com> | 2014-03-29 09:51:23 +0000 |
---|---|---|
committer | Andreas Krebbel <krebbel@linux.vnet.ibm.com> | 2014-09-30 09:14:36 +0200 |
commit | 55a2906a4104af66db515294b18fca1fe63ea060 (patch) | |
tree | 75e045e66b50c45ff647b12e0d77a55be22afd1c | |
parent | 022c98ab88317728d2f77fc1b3726bf1717dacff (diff) | |
download | gdb-55a2906a4104af66db515294b18fca1fe63ea060.zip gdb-55a2906a4104af66db515294b18fca1fe63ea060.tar.gz gdb-55a2906a4104af66db515294b18fca1fe63ea060.tar.bz2 |
IA64: Migrate from 'regset_from_core_section' to 'iterate_over_regset_sections'
For IA-64 GNU/Linux targets, no longer define the gdbarch method
'regset_from_core_section', but the iterator method instead.
gdb/ChangeLog:
* ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
(ia64_linux_iterate_over_regset_sections): New.
(ia64_linux_init_abi): Adjust gdbarch initialization.
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/ia64-linux-tdep.c | 24 |
2 files changed, 15 insertions, 15 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d68ecbb..2d853d1 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,11 @@ 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com> + * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove. + (ia64_linux_iterate_over_regset_sections): New. + (ia64_linux_init_abi): Adjust gdbarch initialization. + +2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com> + * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove. (m68kbsd_iterate_over_regset_sections): New. (m68kbsd_init_abi): Adjust gdbarch initialization. diff --git a/gdb/ia64-linux-tdep.c b/gdb/ia64-linux-tdep.c index 3bdf2a1..deedec6 100644 --- a/gdb/ia64-linux-tdep.c +++ b/gdb/ia64-linux-tdep.c @@ -201,20 +201,14 @@ static const struct regset ia64_linux_fpregset = ia64_linux_supply_fpregset, regcache_collect_regset }; -static const struct regset * -ia64_linux_regset_from_core_section (struct gdbarch *gdbarch, - const char *sect_name, - size_t sect_size) +static void +ia64_linux_iterate_over_regset_sections (struct gdbarch *gdbarch, + iterate_over_regset_sections_cb *cb, + void *cb_data, + const struct regcache *regcache) { - if (strcmp (sect_name, ".reg") == 0 - && sect_size >= IA64_LINUX_GREGS_SIZE) - return &ia64_linux_gregset; - - if (strcmp (sect_name, ".reg2") == 0 - && sect_size >= IA64_LINUX_FPREGS_SIZE) - return &ia64_linux_fpregset; - - return NULL; + cb (".reg", IA64_LINUX_GREGS_SIZE, &ia64_linux_gregset, NULL, cb_data); + cb (".reg2", IA64_LINUX_FPREGS_SIZE, &ia64_linux_fpregset, NULL, cb_data); } static void @@ -248,8 +242,8 @@ ia64_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) svr4_fetch_objfile_link_map); /* Core file support. */ - set_gdbarch_regset_from_core_section (gdbarch, - ia64_linux_regset_from_core_section); + set_gdbarch_iterate_over_regset_sections + (gdbarch, ia64_linux_iterate_over_regset_sections); /* SystemTap related. */ set_gdbarch_stap_register_prefixes (gdbarch, stap_register_prefixes); |