[Bug tools/22288] eu-addr2line doesn't find a rust file:line

dblaikie at gmail dot com sourceware-bugzilla@sourceware.org
Tue May 24 00:18:14 GMT 2022


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

--- Comment #5 from David Blaikie <dblaikie at gmail dot com> ---
Just a quick +1 to Comment #2 - consumers shouldn't rely on the presence of
.debug_aranges, or them being complete (DWARF doesn't require/guarantee this -
and Clang doesn't emit aranges by default, for instance). Each contribution to
.debug_aranges says which CU it covers and any CUs not covered should be
parsed/assumed to contain things covering other addresses.

Ideally parsing CUs lightly (just enough to get their CU ranges) should be
fairly cheap - cheap enough to be worth doing so to avoid/save producers having
to emit all the extra/duplicate data into .debug_aranges that's already covered
by CU ranges.

It'd be nice if Rust could revert/avoid emitting these aranges, like Clang
does.

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


More information about the Elfutils-devel mailing list