diff options
author | Alan Modra <amodra@gmail.com> | 2023-04-30 20:42:30 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2023-05-03 15:00:05 +0930 |
commit | 717d4bd6d199fcf834f741489aaf3bd800f9769f (patch) | |
tree | 41ecfc03c6cd82e376d3b8bfe328842af6a7a250 /bfd/libbfd-in.h | |
parent | a41bd1c837f9b71b44dbb71c2d47814326cfaa8d (diff) | |
download | gdb-717d4bd6d199fcf834f741489aaf3bd800f9769f.zip gdb-717d4bd6d199fcf834f741489aaf3bd800f9769f.tar.gz gdb-717d4bd6d199fcf834f741489aaf3bd800f9769f.tar.bz2 |
Generated docs and include files
bfd/doc/chew.c extracts documentation from source code comments
annotated with keywords, and generates much of bfd.h and libbfd.h from
those same comments. The docs have suffered from people (me too)
adding things like CODE_FRAGMENT to the source to put code into bfd.h
without realising that CODE_FRAGMENT also puts @example around said
code into the docs. So we have random senseless things in the docs.
This patch fixes that problem (well, the senseless things from
CODE_FRAGMENT), moves most of the code out of bfd-in.h, and improves a
few chew.c features. libbfd.h now automatically gets ATTRIBUTE_HIDDEN
prototypes, and indentation in bfd.h and libbfd.h is better.
Diffstat (limited to 'bfd/libbfd-in.h')
-rw-r--r-- | bfd/libbfd-in.h | 64 |
1 files changed, 3 insertions, 61 deletions
diff --git a/bfd/libbfd-in.h b/bfd/libbfd-in.h index ca15b8b..b3f5190 100644 --- a/bfd/libbfd-in.h +++ b/bfd/libbfd-in.h @@ -170,10 +170,6 @@ extern bfd *_bfd_get_elt_at_filepos (bfd *, file_ptr, struct bfd_link_info *) ATTRIBUTE_HIDDEN; extern bfd *_bfd_generic_get_elt_at_index (bfd *, symindex) ATTRIBUTE_HIDDEN; -extern bfd * _bfd_new_bfd - (void) ATTRIBUTE_HIDDEN; -extern bool _bfd_free_cached_info - (bfd *) ATTRIBUTE_HIDDEN; extern bool _bfd_bool_bfd_false (bfd *) ATTRIBUTE_HIDDEN; @@ -214,8 +210,6 @@ extern void _bfd_void_bfd_link extern void _bfd_void_bfd_asection (bfd *, asection *) ATTRIBUTE_HIDDEN; -extern bfd *_bfd_new_bfd_contained_in - (bfd *) ATTRIBUTE_HIDDEN; extern bfd_cleanup _bfd_dummy_target (bfd *) ATTRIBUTE_HIDDEN; #define _bfd_no_cleanup _bfd_void_bfd @@ -709,34 +703,6 @@ extern bfd_reloc_status_type _bfd_relocate_contents extern bfd_reloc_status_type _bfd_clear_contents (reloc_howto_type *, bfd *, asection *, bfd_byte *, bfd_vma) ATTRIBUTE_HIDDEN; -/* Link stabs in sections in the first pass. */ - -extern bool _bfd_link_section_stabs - (bfd *, struct stab_info *, asection *, asection *, void **, - bfd_size_type *) ATTRIBUTE_HIDDEN; - -/* Eliminate stabs for discarded functions and symbols. */ -extern bool _bfd_discard_section_stabs - (bfd *, asection *, void *, bool (*) (bfd_vma, void *), void *) - ATTRIBUTE_HIDDEN; - -/* Write out the .stab section when linking stabs in sections. */ - -extern bool _bfd_write_section_stabs - (bfd *, struct stab_info *, asection *, void **, bfd_byte *) - ATTRIBUTE_HIDDEN; - -/* Write out the .stabstr string table when linking stabs in sections. */ - -extern bool _bfd_write_stab_strings - (bfd *, struct stab_info *) ATTRIBUTE_HIDDEN; - -/* Find an offset within a .stab section when linking stabs in - sections. */ - -extern bfd_vma _bfd_stab_section_offset - (asection *, void *, bfd_vma) ATTRIBUTE_HIDDEN; - /* Register a SEC_MERGE section as a candidate for merging. */ extern bool _bfd_add_merge_section @@ -762,31 +728,6 @@ extern bfd_vma _bfd_merged_section_offset extern void _bfd_merge_sections_free (void *) ATTRIBUTE_HIDDEN; -/* Create a string table. */ -extern struct bfd_strtab_hash *_bfd_stringtab_init - (void) ATTRIBUTE_HIDDEN; - -/* Create an XCOFF .debug section style string table. */ -extern struct bfd_strtab_hash *_bfd_xcoff_stringtab_init - (bool isxcoff64) ATTRIBUTE_HIDDEN; - -/* Free a string table. */ -extern void _bfd_stringtab_free - (struct bfd_strtab_hash *) ATTRIBUTE_HIDDEN; - -/* Get the size of a string table. */ -extern bfd_size_type _bfd_stringtab_size - (struct bfd_strtab_hash *) ATTRIBUTE_HIDDEN; - -/* Add a string to a string table. */ -extern bfd_size_type _bfd_stringtab_add - (struct bfd_strtab_hash *, const char *, bool hash, bool copy) - ATTRIBUTE_HIDDEN; - -/* Write out a string table. */ -extern bool _bfd_stringtab_emit - (bfd *, struct bfd_strtab_hash *) ATTRIBUTE_HIDDEN; - /* Macros to tell if bfds are read or write enabled. Note that bfds open for read may be scribbled into if the fd passed @@ -841,9 +782,10 @@ extern const bfd_target *const *const bfd_associated_vector ATTRIBUTE_HIDDEN; /* Functions shared by the ECOFF and MIPS ELF backends, which have no other common header files. */ -#if defined(__STDC__) || defined(ALMOST_STDC) +struct ecoff_debug_info; +struct ecoff_debug_swap; +struct ecoff_extr; struct ecoff_find_line; -#endif extern bool _bfd_ecoff_locate_line (bfd *, asection *, bfd_vma, struct ecoff_debug_info * const, |