]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libdwfl: Handle debugaltlink in dwfl_standard_find_debuginfo.
authorMark Wielaard <mark@klomp.org>
Thu, 30 Apr 2020 21:57:26 +0000 (23:57 +0200)
committerMark Wielaard <mark@klomp.org>
Thu, 30 Apr 2020 22:00:28 +0000 (00:00 +0200)
commitb1d2404cc6ca0d9ce786e229a87c24db49163cfe
tree1d42f937ccf991005e71f76001d1389f2d4ac6d3
parenta894c63dba7019ceb8f6aa2c3cdcef519c65c92d
libdwfl: Handle debugaltlink in dwfl_standard_find_debuginfo.

When we fall back to the debuginfod client then we need to do the
same trick we do for local lookups in dwfl_build_id_find_debuginfo.
If the debug file (dw) is already set, then we must be looking for
the altfile. But we cannot use the actual file/path name given as
hint. We'll have to lookup the alt file "build-id". Because the
debuginfod client only handles build-ids.

Previously we would use the build-id of the main file which meant
the debuginfod client would give us another copy of the debug file,
which would then be set as its own altfile. This caused lots of
confusion...

Signed-off-by: Mark Wielaard <mark@klomp.org>
libdwfl/ChangeLog
libdwfl/find-debuginfo.c