https://sourceware.org/bugzilla/show_bug.cgi?id=31085
Bug ID: 31085 Summary: Provide tool to extract path to .dwo from binary Product: elfutils Version: unspecified Status: NEW Severity: normal Priority: P2 Component: tools Assignee: unassigned at sourceware dot org Reporter: sam at gentoo dot org CC: arsen at sourceware dot org, elfutils-devel at sourceware dot org Target Milestone: --- It would be nice if elfutils provided a tool to find the .dwo path embedded in a binary with gcc's -gsplit-dwarf (extract '.debug_str' to find the .dwo path). ``` echo 'int main() {}' > /tmp/foo.c gcc /tmp/foo.c -ggdb3 -o /tmp/foo -gsplit-dwarf ``` /tmp/foo might be moved after the build (e.g. installed by the build system to DESTDIR). I need a way to map /tmp/foo -> /tmp/foo.dwo by reading .debug_str from /tmp/foo. (The reason being: I might have a lot of binaries in my DESTDIR. I need to know which of them have debug information available & where it is, so I can copy them into the DESTDIR too in e.g. /usr/lib/debug). -- You are receiving this mail because: You are on the CC list for the bug.