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/coff-rs6000.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bfd/coff-rs6000.c') diff --git a/bfd/coff-rs6000.c b/bfd/coff-rs6000.c index 3f0753e..bfa999d 100644 --- a/bfd/coff-rs6000.c +++ b/bfd/coff-rs6000.c @@ -4409,6 +4409,8 @@ const struct xcoff_dwsect_name xcoff_dwsect_names[] = { coff_bfd_is_target_special_symbol #define _bfd_xcoff_get_lineno coff_get_lineno #define _bfd_xcoff_find_nearest_line coff_find_nearest_line +#define _bfd_xcoff_find_nearest_line_with_alt \ +coff_find_nearest_line_with_alt #define _bfd_xcoff_find_line coff_find_line #define _bfd_xcoff_find_inliner_info coff_find_inliner_info #define _bfd_xcoff_bfd_make_debug_symbol coff_bfd_make_debug_symbol -- cgit v1.1