aboutsummaryrefslogtreecommitdiff
path: root/bfd/libbfd.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2023-03-24 16:28:08 +1030
committerAlan Modra <amodra@gmail.com>2023-03-24 21:01:43 +1030
commit17749b3926dcf60acfec6b718733f3932b9fe880 (patch)
tree93d4a0055f4fbf440473d2a7b205c00e3cde1c31 /bfd/libbfd.h
parentc569a946f6925d3f210c3eaf74dcda56843350ef (diff)
downloadfsf-binutils-gdb-17749b3926dcf60acfec6b718733f3932b9fe880.zip
fsf-binutils-gdb-17749b3926dcf60acfec6b718733f3932b9fe880.tar.gz
fsf-binutils-gdb-17749b3926dcf60acfec6b718733f3932b9fe880.tar.bz2
Tidy dwarf1 cached section contents
* dwarf1.c (_bfd_dwarf1_cleanup_debug_info): New function. * libbfd-in.h (_bfd_dwarf1_cleanup_debug_info): Declare. * elf.c (_bfd_elf_close_and_cleanup): Call it. * elf-bfd.h (struct elf_obj_tdata): Make dwarf1_find_line_info a void*. * libbfd.h: Regenerate.
Diffstat (limited to 'bfd/libbfd.h')
-rw-r--r--bfd/libbfd.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/bfd/libbfd.h b/bfd/libbfd.h
index fa6f2d7..d1dc7b9 100644
--- a/bfd/libbfd.h
+++ b/bfd/libbfd.h
@@ -579,6 +579,10 @@ extern bool _bfd_dwarf1_find_nearest_line
(bfd *, asymbol **, asection *, bfd_vma,
const char **, const char **, unsigned int *) ATTRIBUTE_HIDDEN;
+/* Clean up the data used to handle DWARF 1 debugging information. */
+extern void _bfd_dwarf1_cleanup_debug_info
+ (bfd *, void **) ATTRIBUTE_HIDDEN;
+
struct dwarf_debug_section
{
const char * uncompressed_name;