diff options
Diffstat (limited to 'gdb/hppa-linux-tdep.c')
-rw-r--r-- | gdb/hppa-linux-tdep.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/gdb/hppa-linux-tdep.c b/gdb/hppa-linux-tdep.c index 6bc604b..52837ee 100644 --- a/gdb/hppa-linux-tdep.c +++ b/gdb/hppa-linux-tdep.c @@ -472,17 +472,17 @@ static const struct regset hppa_linux_fpregset = regcache_supply_regset, regcache_collect_regset }; -static const struct regset * -hppa_linux_regset_from_core_section (struct gdbarch *gdbarch, - const char *sect_name, - size_t sect_size) +static void +hppa_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) - return &hppa_linux_regset; - else if (strcmp (sect_name, ".reg2") == 0) - return &hppa_linux_fpregset; + struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch); - return NULL; + cb (".reg", 80 * tdep->bytes_per_address, &hppa_linux_regset, + NULL, cb_data); + cb (".reg2", 64 * 4, &hppa_linux_fpregset, NULL, cb_data); } @@ -520,8 +520,8 @@ hppa_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) more work in gcc and glibc first. */ set_gdbarch_long_double_bit (gdbarch, 64); - set_gdbarch_regset_from_core_section - (gdbarch, hppa_linux_regset_from_core_section); + set_gdbarch_iterate_over_regset_sections + (gdbarch, hppa_linux_iterate_over_regset_sections); set_gdbarch_dwarf2_reg_to_regnum (gdbarch, hppa_dwarf_reg_to_regnum); |