Skip to content

priv-kweihmann/tracefiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

189 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tracefiles

A utility to find used sources from a binary using DWARF info and more

Usage

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

Output

Returns the found filenames to stdout

Requirements

All you need is are following utilities installed

  • readelf
  • awk
  • grep

and of course some debug symbols will come in handy ;-)

License

This tool is licensed under BSD-2-Clause

About

A utility to get the used sources from a binary

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors