dwarf2sources(1)
π dwarf2sources π
okay bestie, come sit with me because today we're talking about dwarf2sources from the dwarf2sources(1) manual, section 1, and it's genuinely such a useful little gremlin. its whole job? list the source files for a given binary. that's it. that's the gig. β¨
πΈ NAME πΈ
dwarf2sources β literally just: list the source files for a given binary. iconic behaviour, no notes. π
π¦ SYNOPSIS π¦
dwarf2sources [-o output.json] [-s strip-prefix] [file]...
so you hand it some files, you optionally hand it an output file and a prefix to strip, and it does its thing. periodt. π
β¨ DESCRIPTION β¨
okay so here's the tea π: dwarf2sources lists out the source files that were used to create a given binary, and it gives you the whole thing in JSON format. very demure, very parseable.
but bestie, listen β the input files must not be stripped, and they must contain debugging information in DWARF format. if they're stripped? it's giving nothing. it's giving empty. don't do that to yourself. π
here's the flag menu, and every single one is a baddie in its own right:
-h,--helpβ prints help information. when in doubt, ask for help, that's main character energy fr fr π«Ά-V,--versionβ prints version information. know your version, love your version. β-o,--output <output>β the file to write the JSON output to. your receipts, your JSON, your moment. πΎ-s,--strip-prefix <strip-prefix>β strips the given prefix fromcomp_dirpaths. lowkey the tidiest little glow-up for your paths. π§
π AUTHORS π
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. we love a collaborative slay. π
π₯ SEE ALSO π₯
iykyk. go look at them if you want the extended universe. π
and that's the whole vibe check on dwarf2sources(1) β straight from the section 1 manual, no cap, every flag accounted for, and not a single detail left on read. π mwah. π
π¦ where this page comes from
- debian trixie: dwarf2sources 0.2.5-2+b1 Β· Apache-2.0 OR MIT
- ubuntu questing: dwarf2sources 0.2.5-2
- ubuntu resolute: dwarf2sources 0.2.6-1 Β· Apache-2.0 OR MIT
- ubuntu stonking: dwarf2sources 0.2.6-1 Β· Apache-2.0 OR MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms