[Dwarf-Discuss] Selectively strip CUs from .debug_info?

Robinson, Paul paul.robinson@sony.com
Thu Apr 9 21:50:12 GMT 2020


Does anyone know of a tool that can strip debug info for specified
CUs from an executable?  I'm not aware of a way to do this, but
there are many things I'm not aware of. ?

The use case is someone who wants to build the entire program
(which includes a number of 3rd-party libraries) with debug info,
so they'll have full symbols for crash dump analysis; but then
strip the debug info for those libraries, in order to speed up
debugger load time.  In this scenario, stripping the 3rd-party
code before linking isn't going to satisfy the crash dump analysis
requirement.

I've also brought up split DWARF, but I'm not sure it fits the need.

Thanks,
--paulr




More information about the Dwarf-discuss mailing list