Files
reverse-engineering-anything/docs/specs/native/dwarf-units/tasks.md
T
Matt Van Hornandgensokyo-dev 637e4cb60c feat(native): inspect DWARF compile units offline
Add bounded offline DWARF compilation-unit inspection with source provenance, explicit coverage, caller-selected controls and shared ELF compression framing.

Assisted-by: Suika (gensokyo-skills:suika-scatter-gather-planning)
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-17 10:04:46 +00:00

858 B

Tasks

  • Define single-feature scope, contracts and implementation plan (spec.md, plan.md).
  • Define the DWARF unit report schema, limits and coverage states in src/domain/native/dwarfUnits.ts.
  • Locate and decompress ELF, Mach-O and PE debug sections, including the Mach-O on_disk file-range fact.
  • Decode abbreviations, framed units and unit DIEs with bounded strx, DW_FORM_indirect and relocation handling.
  • Register the MCP tool and CLI command; add provider, boundary, MCP and CLI acceptance tests.
  • Compare compiled fixtures with llvm-dwarfdump in scripts/verify-dwarf-units.mjs and record the run.
  • Add the DWARF compile units guide, CLI and README entries and skill guidance.
  • Compare a GCC-produced object, a linked Mach-O image and a .dSYM DWARF file; the recorded run covered none of them.