diff options
author | Aaron Merey <amerey@redhat.com> | 2022-09-02 14:16:30 -0400 |
---|---|---|
committer | Aaron Merey <amerey@redhat.com> | 2022-09-06 10:42:50 -0400 |
commit | 6e7a29c7de4e1df679f2b6f6449b20474fbbcfdf (patch) | |
tree | 4ebae737f83b181c6a30c561bcf09a238c6da55f /bfd/libbfd.h | |
parent | cb21dd0c599a420117abbcbbd1e20cce8d9e771d (diff) | |
download | fsf-binutils-gdb-6e7a29c7de4e1df679f2b6f6449b20474fbbcfdf.zip fsf-binutils-gdb-6e7a29c7de4e1df679f2b6f6449b20474fbbcfdf.tar.gz fsf-binutils-gdb-6e7a29c7de4e1df679f2b6f6449b20474fbbcfdf.tar.bz2 |
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.
Diffstat (limited to 'bfd/libbfd.h')
-rw-r--r-- | bfd/libbfd.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/bfd/libbfd.h b/bfd/libbfd.h index c766722..68d0c42 100644 --- a/bfd/libbfd.h +++ b/bfd/libbfd.h @@ -456,6 +456,10 @@ extern bool _bfd_nosymbols_find_nearest_line (bfd *, asymbol **, asection *, bfd_vma, const char **, const char **, unsigned int *, unsigned int *) ATTRIBUTE_HIDDEN; +extern bool _bfd_nosymbols_find_nearest_line_with_alt + (bfd *, const char *, asymbol **, asection *, bfd_vma, + const char **, const char **, unsigned int *, unsigned int *) + ATTRIBUTE_HIDDEN; extern bool _bfd_nosymbols_find_line (bfd *, asymbol **, asymbol *, const char **, unsigned int *) ATTRIBUTE_HIDDEN; @@ -591,6 +595,13 @@ extern int _bfd_dwarf2_find_nearest_line const char **, const char **, unsigned int *, unsigned int *, const struct dwarf_debug_section *, void **) ATTRIBUTE_HIDDEN; +/* Find the nearest line using DWARF 2 debugging information, with + the option of specifying a .gnu_debugaltlink file. */ +extern int _bfd_dwarf2_find_nearest_line_with_alt + (bfd *, const char *, asymbol **, asymbol *, asection *, bfd_vma, + const char **, const char **, unsigned int *, unsigned int *, + const struct dwarf_debug_section *, void **) ATTRIBUTE_HIDDEN; + /* Find the bias between DWARF addresses and real addresses. */ extern bfd_signed_vma _bfd_dwarf2_find_symbol_bias (asymbol **, void **) ATTRIBUTE_HIDDEN; |