https://sourceware.org/bugzilla/show_bug.cgi?id=34754
Bug ID: 34754
Summary: debuginfod doesn't index sources of DWARF 5
split-DWARF binaries
Product: elfutils
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: debuginfod
Assignee: unassigned at sourceware dot org
Reporter: simark at simark dot ca
CC: elfutils-devel at sourceware dot org
Target Milestone: ---
This bug was found while investigating this GDB bug:
https://sourceware.org/bugzilla/show_bug.cgi?id=34751
Credit goes to Claude for finding the root cause.
With -gdwarf-5 -gsplit-dwarf, debuginfod doesn't index any source files, so
source queries return 404. This check in dwarf_extract_source_paths skips the
CU, because in DWARF 5 the CU in the main file is a DW_TAG_skeleton_unit:
https://sourceware.org/git/?p=elfutils.git;a=blob;f=debuginfod/debuginfod.cxx;hb=0391c894ebd0768edaed36944197ad68f4383d84#l4227
if (dwarf_tag (cudie) != DW_TAG_compile_unit)
continue;
Changing that line to let DW_TAG_skeleton_unit go though makes it work for me
(meaning the GDB test now passes).
--
You are receiving this mail because:
You are on the CC list for the bug.