tmcgilchrist/durin: Durin is a library for reading and writing the Dwarf debugging format

Durin is a library for reading and writing the Dwarf debugging format.

It aims to support:

  • Reading DWARF 5 encoded information from ELF and Macho object files.
  • Writing DWARF 5 information to ELF and Macho object files.
  • Writing DWARF 5 information to assembly files.

In the future it may support DWARF 4 or newer versions of the DWARF standard.

It should provide:

  • Cross-platform: durin Makes no assumptions about what type of object file you are working with. Provide your own buffer or use this object Library.
  • Lazy: You can iterate over compilation units without parsing their contents. Parse only as many debugging information entry (DIE) trees as you iterate. durin also uses DW_AT_sibling References to avoid parsing children of a DIE to find its next sibling where possible.

to establish durin As a dependency, run:

add more durin for your project dune-project Or *.opam files.

  • Documentation on ocaml.org
  • Example program in example Directory



<a href

Leave a Comment