diff options
author | Tom Tromey <tom@tromey.com> | 2020-09-19 11:54:49 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2020-09-19 11:54:52 -0600 |
commit | b35c1d1cf457db034186f321517eee69ef8457a5 (patch) | |
tree | 05dcbbd0e7f32f986369aad09b59bb770189f124 /gdb/osabi.h | |
parent | 5bb6e9dd7090cacb02bbe9f20d8b101a59a3bf99 (diff) | |
download | fsf-binutils-gdb-b35c1d1cf457db034186f321517eee69ef8457a5.zip fsf-binutils-gdb-b35c1d1cf457db034186f321517eee69ef8457a5.tar.gz fsf-binutils-gdb-b35c1d1cf457db034186f321517eee69ef8457a5.tar.bz2 |
Use gdb_bfd_sections in ELF osabi tag sniffing
This changes some ELF osabi tag-sniffing functions to avoid
bfd_map_over_sections, in favor of iteration. I could only readily
test the generic one.
gdb/ChangeLog
2020-09-19 Tom Tromey <tom@tromey.com>
* osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
* osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
parameters.
(generic_elf_osabi_sniffer): Use foreach.
* mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
* arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
Diffstat (limited to 'gdb/osabi.h')
-rw-r--r-- | gdb/osabi.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/osabi.h b/gdb/osabi.h index a7e6a10..9b7ab18 100644 --- a/gdb/osabi.h +++ b/gdb/osabi.h @@ -86,8 +86,8 @@ const char *gdbarch_osabi_name (enum gdb_osabi); const char *osabi_triplet_regexp (enum gdb_osabi osabi); /* Helper routine for ELF file sniffers. This looks at ABI tag note - sections to determine the OS ABI from the note. It should be called - via bfd_map_over_sections. */ -void generic_elf_osabi_sniff_abi_tag_sections (bfd *, asection *, void *); + sections to determine the OS ABI from the note. */ +void generic_elf_osabi_sniff_abi_tag_sections (bfd *, asection *, + enum gdb_osabi *); #endif /* OSABI_H */ |