dwprod
Find the DW_AT_producer
for all compilation units within a shared library or
executable.
What is DW_AT_producer
?
The DW_AT_producer
is an attribute within DWARF debug info that says what
compiler was used to create each compilation unit that ended up within a given
shared library or executable.
Usage
As a Library
First, add this to your Cargo.toml
:
Then, import the dwprod
crate and use it to iterate over DW_AT_producer
values:
The fallible-iterator
crate can
also be used to leverage iterator combinators like map
and filter
:
As a Command Line Tool
First, install via cargo
:
Then, run dwprod path/to/shared/library/or/executable
to get a dump of all of
the DW_AT_producer
values for each compilation unit within the given shared
library or executable.
Here is the result of running dwprod
on itself:
For more details about the dwprod
command line tool, run dwprod --help
.
License: Apache-2.0/MIT