DWARF Expert gives the agent working knowledge of DWARF debug info in compiled binaries. It covers dumping and searching DIE trees with llvm-dwarfdump, checking integrity with the verifier, answering questions about the standard from the official sources, and writing parsers with libraries such as pyelftools, gimli or libdwarf.
It also records pitfalls that trip up DWARF code: optional attributes, abstract-origin indirection, type chains, and the macOS dSYM layout.
What You Get
- A search strategy for DIEs that escalates from —find and —name to grep filters and Python scripts
- Verification steps using llvm-dwarfdump —verify and —statistics
- A table of parsing libraries for C/C++, Python, Rust, Go and .NET
- A checklist of DWARF parsing pitfalls to handle or look for in review
- Pointers to the DWARF standard, LLVM sources and libdwarf as authoritative references
Common Use Cases
- Finding every function parameter of a given type in a binary
- Checking that a compiler or binary rewriter produced valid debug info
- Writing a Python script that walks DIEs to extract struct layouts
- Working out why a binary carries an old DWARF version
What Makes It Unique
The skill stays narrow: DWARF sections only, with runtime debugging and wider reverse engineering left to other tools. It spells out tool differences, such as libdwarf and LLVM dwarfdump having different options and macOS binaries keeping DWARF in dSYM bundles, and it sends the agent to the specification and LLVM sources whenever a standard detail needs to be exact.
Under The Hood
The skill is prose with no scripts. It lets the agent run shell commands such as llvm-dwarfdump, readelf, dsymutil and grep pipelines on binaries you point it at, read and write files for one-off scripts, and search the web and fetch pages from dwarfstd.org and library repositories to check the standard.