https://sourceware.org/bugzilla/show_bug.cgi?id=29075

--- Comment #22 from Aaron Merey <amerey at redhat dot com> ---
Created attachment 14299
  --> https://sourceware.org/bugzilla/attachment.cgi?id=14299&action=edit
Revised Patch

I've attached an updated patch. I took Nick's original patch and added a
function _bfd_elf_find_nearest_line_with_alt to bfd/elf.c.

Objdump can now specify the filename of a .gnu_debugaltlink file in order to
skip libbfd's built-in search that doesn't check the debuginfod cache.

Also, instead of always passing an exec/solib file to libbfd's
find_nearest_line facilities we now pass the .gnu_debuglink file if it exists.

With these changes obdjump can pass all necessary files from the debuginfod
cache to libbfd's find_nearest_line without adding debuginfod support to libbfd
itself. This approach can also be reused by other binutils tools if desired.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to