8000 GitHub - priv-kweihmann/tracefiles: A utility to get the used sources from a binary · GitHub
[go: up one dir, main page]

Skip to content

About

A utility to get the used sources from a binary

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

220 Commits

Folders and files

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

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

0