From 6e7a29c7de4e1df679f2b6f6449b20474fbbcfdf Mon Sep 17 00:00:00 2001 From: Aaron Merey Date: Fri, 2 Sep 2022 14:16:30 -0400 Subject: bfd: Add bfd_find_nearest_line_with_alt bfd_find_nearest_line_with_alt functions like bfd_find_nearest_line with the addition of a parameter for specifying the filename of a supplementary debug file such as one referenced by .gnu_debugaltlink or .debug_sup. This patch focuses on implementing bfd_find_nearest_line_with_alt support for ELF/DWARF2 .gnu_debugaltlink. For other targets this function simply sets the invalid_operation bfd_error. --- bfd/elf-bfd.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bfd/elf-bfd.h') diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h index 65bd112..f00f87b 100644 --- a/bfd/elf-bfd.h +++ b/bfd/elf-bfd.h @@ -2333,6 +2333,9 @@ extern bool _bfd_elf_set_arch_mach extern bool _bfd_elf_find_nearest_line (bfd *, asymbol **, asection *, bfd_vma, const char **, const char **, unsigned int *, unsigned int *); +extern bool _bfd_elf_find_nearest_line_with_alt + (bfd *, const char *, asymbol **, asection *, bfd_vma, + const char **, const char **, unsigned int *, unsigned int *); extern bool _bfd_elf_find_line (bfd *, asymbol **, asymbol *, const char **, unsigned int *); extern bool _bfd_elf_find_inliner_info -- cgit v1.1