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

github.com

70 points by mooreds a day ago


vlovich123 - a day ago

How does this compare with gimli-rs? Last I checked it was the absolute leader in performance.

https://github.com/gimli-rs/gimli

woodruffw - a day ago

DWARF is such a neat little format. I have a soft spot for the "line program" table, which is a little state machine that allows DWARF to efficiently encode a line/column correspondence for virtual addresses.

iou - a day ago

I sure hope there’s an anti-debug framework called Durin’s Bane?

zidel - a day ago

One interesting thing about the dwarf format is that it is executable and Turing complete, running small programs on a virtual machine to figure out file names, line numbers and exception handling.

wavemode - a day ago

Several of the examples seem to be empty (e.g. https://github.com/tmcgilchrist/durin/blob/master/example/dw...)

Also, the link to OPAM documentation leads to a 404

WalterBright - 20 hours ago

Best of luck to you! I spent many hours trying to understand and generate proper Dwarf tables.

yawaramin - 11 hours ago

Are ELF and DWARF names chosen deliberately or was it a coincidence? Lol