https://sourceware.org/bugzilla/show_bug.cgi?id=25793
--- Comment #5 from Ben Woodard <woodard at redhat dot com> --- (In reply to Mark Wielaard from comment #3) > We could maybe add something like --dwarf=follow-links to eu-readelf. But > the DWARF information dumping is already somewhat different from the rest of > eu-readelf. The basic idea of eu-readelf is that you can dump headers, > segments and sections data. This is somewhat lower level than what you are > usually after when using DWARF. If you look at how eu-readelf dumps various > .debug sections you'll see that it really just dumps the data, and doesn't > use libdw at all. There are sometimes two ways to dump the section data > (--debug-dump=line and --debug-dump=decodedline), one which dumps the "raw" > data and one which uses libdw to decode the data first. So maybe we really > need a new tool to dump "decoded" DWARF, which isn't concerned with how the > DWARF data is precisely encoded, but just shows the information. For such a > tool (eu-dwarfdump ?) it would make perfect sense to follow, search and > download extra files when necessary. I really think that you need to reconsider this position. Take for example this situation. I'm trying to diagnose a problem with boost's DWARF that was reported to me by a dyninst developer. I want to: [ben@Mustang dwqual]$ export DEBUGINFOD_URLS=https://debuginfod.elfutils.org/ [ben@Mustang dwqual]$ export DEBUGINFOD_PROGRESS=1 [ben@Mustang dwqual]$ eu-readelf --debug-dump=loc /lib64/libboost_system.so.1.69.0 eu-readelf: cannot get debug context descriptor: No DWARF information found [ben@Mustang dwqual]$ rpm -qf /lib64/libboost_system.so.1.69.0 boost-system-1.69.0-18.fc32.x86_64 This could be a really a helpful debugging tool. We don't have to go digging around for the right debuginfo RPM for the distribution since it looks it up by buildid. I can just point eu-readelf and print out the DWARF for that binary which would work if we didn't do split dwarf. However, it doesn't work because we don't have a follow links function. This unnecessarily makes something that would be very useful, not useful simply because of ideological purity. -- You are receiving this mail because: You are on the CC list for the bug.