DOKK / manpages / debian 12 / dwarf2sources / dwarf2sources.1.en
dwarf2sources(1) dwarf2sources(1)

dwarf2sources - list the source files for a given binary

dwarf2sources [-o output.json] [-s strip-prefix] [file]...

dwarf2sources lists the source files that were used to create a given binary in JSON format. The input files must not be stripped and must contain debugging information in DWARF format.

Prints help information
Prints version information
File to write JSON output to
Strip given prefix from comp_dir paths

This program was written by Sjoerd Simons based on the gimli 0.16.1 dwarfdump.rs example by Nick Fitzgerald, Philip Craig and other rust-dwarf developers.

objdump(1), strip(1)