diff options
author | Andreas Arnez <arnez@linux.vnet.ibm.com> | 2014-09-10 12:55:39 +0000 |
---|---|---|
committer | Andreas Krebbel <krebbel@linux.vnet.ibm.com> | 2014-09-30 09:14:39 +0200 |
commit | 29082443fc1b8996cf9c6f2ecd8a838f48cac103 (patch) | |
tree | 916d4b623338e80ba161c9ce232968fd9797c5e1 /gdb/gdbarch.c | |
parent | f968fe80b09ddc88538db2250b367fc0074739fa (diff) | |
download | gdb-29082443fc1b8996cf9c6f2ecd8a838f48cac103.zip gdb-29082443fc1b8996cf9c6f2ecd8a838f48cac103.tar.gz gdb-29082443fc1b8996cf9c6f2ecd8a838f48cac103.tar.bz2 |
Drop 'regset_from_core_section' gdbarch method
Now that all instances of the regset_from_core_section gdbarch method
have been replaced by the new iterator method, delete the obsolete
method from the gdbarch interface. Adjust all invocations and
references to it.
gdb/ChangeLog:
* gdbarch.sh (regset_from_core_section): Remove gdbarch method.
* gdbarch.c: Regenerate.
* gdbarch.h: Likewise.
* corelow.c (sniff_core_bfd): Drop presence check for deleted
gdbarch method 'regset_from_core_section'.
(get_core_register_section): Remove handling for the case that
regset == NULL and regset_from_core_section is defined.
(get_core_registers): Drop check for deleted method.
* procfs.c (procfs_do_thread_registers): Adjust comment.
Diffstat (limited to 'gdb/gdbarch.c')
-rw-r--r-- | gdb/gdbarch.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c index be4bb78..e96d651 100644 --- a/gdb/gdbarch.c +++ b/gdb/gdbarch.c @@ -259,7 +259,6 @@ struct gdbarch gdbarch_address_class_name_to_type_flags_ftype *address_class_name_to_type_flags; gdbarch_register_reggroup_p_ftype *register_reggroup_p; gdbarch_fetch_pointer_argument_ftype *fetch_pointer_argument; - gdbarch_regset_from_core_section_ftype *regset_from_core_section; gdbarch_iterate_over_regset_sections_ftype *iterate_over_regset_sections; gdbarch_make_corefile_notes_ftype *make_corefile_notes; gdbarch_elfcore_write_linux_prpsinfo_ftype *elfcore_write_linux_prpsinfo; @@ -570,7 +569,6 @@ verify_gdbarch (struct gdbarch *gdbarch) /* Skip verify of address_class_name_to_type_flags, has predicate. */ /* Skip verify of register_reggroup_p, invalid_p == 0 */ /* Skip verify of fetch_pointer_argument, has predicate. */ - /* Skip verify of regset_from_core_section, has predicate. */ /* Skip verify of iterate_over_regset_sections, has predicate. */ /* Skip verify of make_corefile_notes, has predicate. */ /* Skip verify of elfcore_write_linux_prpsinfo, has predicate. */ @@ -1144,12 +1142,6 @@ gdbarch_dump (struct gdbarch *gdbarch, struct ui_file *file) "gdbarch_dump: register_type = <%s>\n", host_address_to_string (gdbarch->register_type)); fprintf_unfiltered (file, - "gdbarch_dump: gdbarch_regset_from_core_section_p() = %d\n", - gdbarch_regset_from_core_section_p (gdbarch)); - fprintf_unfiltered (file, - "gdbarch_dump: regset_from_core_section = <%s>\n", - host_address_to_string (gdbarch->regset_from_core_section)); - fprintf_unfiltered (file, "gdbarch_dump: gdbarch_relocate_instruction_p() = %d\n", gdbarch_relocate_instruction_p (gdbarch)); fprintf_unfiltered (file, @@ -3241,30 +3233,6 @@ set_gdbarch_fetch_pointer_argument (struct gdbarch *gdbarch, } int -gdbarch_regset_from_core_section_p (struct gdbarch *gdbarch) -{ - gdb_assert (gdbarch != NULL); - return gdbarch->regset_from_core_section != NULL; -} - -const struct regset * -gdbarch_regset_from_core_section (struct gdbarch *gdbarch, const char *sect_name, size_t sect_size) -{ - gdb_assert (gdbarch != NULL); - gdb_assert (gdbarch->regset_from_core_section != NULL); - if (gdbarch_debug >= 2) - fprintf_unfiltered (gdb_stdlog, "gdbarch_regset_from_core_section called\n"); - return gdbarch->regset_from_core_section (gdbarch, sect_name, sect_size); -} - -void -set_gdbarch_regset_from_core_section (struct gdbarch *gdbarch, - gdbarch_regset_from_core_section_ftype regset_from_core_section) -{ - gdbarch->regset_from_core_section = regset_from_core_section; -} - -int gdbarch_iterate_over_regset_sections_p (struct gdbarch *gdbarch) { gdb_assert (gdbarch != NULL); |