A utility to find used sources from a binary using DWARF info and more
usage: tracefiles [-h] [--debugpaths DEBUGPATHS [DEBUGPATHS ...]] [--addsourcedirs ADDSOURCEDIRS [ADDSOURCEDIRS ...]] sourcedir binaries [binaries ...]
A utility to find used sources from a binary
positional arguments:
sourcedir Directory with the source code
binaries The binaries to inspect
options:
-h, --help show this help message and exit
--debugpaths DEBUGPATHS [DEBUGPATHS ...]
Potential paths where to look for debug info
--addsourcedirs ADDSOURCEDIRS [ADDSOURCEDIRS ...]
Additional paths to scan for sources
Returns the found filenames to stdout
All you need is are following utilities installed
readelfawkgrep
and of course some debug symbols will come in handy ;-)
This tool is licensed under BSD-2-Clause