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/bfd.c | |
parent | cb21dd0c599a420117abbcbbd1e20cce8d9e771d (diff) | |
download | binutils-6e7a29c7de4e1df679f2b6f6449b20474fbbcfdf.zip binutils-6e7a29c7de4e1df679f2b6f6449b20474fbbcfdf.tar.gz binutils-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/bfd.c')
-rw-r--r-- | bfd/bfd.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -2050,6 +2050,11 @@ DESCRIPTION . BFD_SEND (abfd, _bfd_find_nearest_line, \ . (abfd, syms, sec, off, file, func, line, NULL)) . +.#define bfd_find_nearest_line_with_alt(abfd, alt_filename, sec, syms, off, \ +. file, func, line, disc) \ +. BFD_SEND (abfd, _bfd_find_nearest_line_with_alt, \ +. (abfd, alt_filename, syms, sec, off, file, func, line, disc)) +. .#define bfd_find_nearest_line_discriminator(abfd, sec, syms, off, file, func, \ . line, disc) \ . BFD_SEND (abfd, _bfd_find_nearest_line, \ |