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:
durinMakes no assumptions about what type of object file you are working with. Provide your own buffer or use thisobjectLibrary. - Lazy: You can iterate over compilation units without parsing their contents. Parse only as many debugging information entry (DIE) trees as you iterate.
durinalso usesDW_AT_siblingReferences 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
exampleDirectory
<a href