trailofbits avatar

Dwarf Expert

Expert guidance for inspecting, verifying, and parsing DWARF debug info in compiled binaries.

CCM score
74 of 100
skills.sh installs
6K
GitHub stars
8.4K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers dwarfdump and llvm-dwarfdump searches, DIE lookups, and integrity checks with llvm-dwarfdump --verify and --statistics
  • Includes readelf fallbacks, macOS dSYM handling, and a table of parsing libraries: libdwarf, pyelftools, gimli, debug/dwarf, and LibObjectFile
  • Enforces checks for optional attributes, abstract_origin and specification indirection, and type-chain traversal in DWARF code
  • Designed for developers debugging DWARF output or building tools that read DWARF from C, Python, Rust, or Go

Install

$ npx -y skills add trailofbits/skills --skill dwarf-expert -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

DWARF Expert

Expertise for DWARF debug info: parsing and searching it, verifying its integrity, answering questions about the standard, and writing code that consumes it. Out of scope: runtime debugging (use gdb/lldb), reverse engineering beyond the DWARF sections (use Ghidra/IDA), and compiler-specific DWARF generation bugs.

Authoritative Sources

When precision matters, look standard details up instead of answering from memory:

  1. dwarfstd.org — the official specification. Web-search specific sections, e.g. "DWARF5 DW_TAG_subprogram attributes site:dwarfstd.org".
  2. LLVM — llvm/lib/DebugInfo/DWARF/ is a reliable reference implementation: DWARFDie.cpp (DIE and attribute access), DWARFUnit.cpp (compilation units), DWARFDebugLine.cpp (line tables), DWARFVerifier.cpp (validation).
  3. libdwarf — the reference C implementation at github.com/davea42/libdwarf-code.

Parsing and Searching with dwarfdump

Details

Repository
github.com/trailofbits/skills
Categories
Debugging, CLI & Terminal, Security

More from trailofbits/skills

All 74

Similar to Dwarf Expert

More Debugging