Live data from Hacker News

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

github.com

11–20 of 22 posts

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

#11

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

Author here, a bit cringe to see your WIP project posted here. My motivation for writing this from scratch is to simultaneously understand DWARF 5 in all its gory details, develop tooling to support my work on the OCaml compiler, and to build a source debugger in OCaml. The performance or lack of isn't a focus right now, I'm sure it doesn't compare to gimli-rs for performance but it does fully support DWARF 5 which g…

> Author here, a bit cringe to see your WIP project posted here.

I'm confused; are you referring to GP's link to `gimli`, or your own repo in the OP?

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

#14

Earlier quoted context omitted.

Author here, a bit cringe to see your WIP project posted here. My motivation for writing this from scratch is to simultaneously understand DWARF 5 in all its gory details, develop tooling to support my work on the OCaml compiler, and to build a source debugger in OCaml. The performance or lack of isn't a focus right now, I'm sure it doesn't compare to gimli-rs for performance but it does fully support DWARF 5 which g…

> Author here, a bit cringe to see your WIP project posted here. I'm confused; are you referring to GP's link to `gimli`, or your own repo in the OP?

My own repo in the OP :-)

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

#15

Earlier quoted context omitted.

Author here, a bit cringe to see your WIP project posted here. My motivation for writing this from scratch is to simultaneously understand DWARF 5 in all its gory details, develop tooling to support my work on the OCaml compiler, and to build a source debugger in OCaml. The performance or lack of isn't a focus right now, I'm sure it doesn't compare to gimli-rs for performance but it does fully support DWARF 5 which g…

> Author here, a bit cringe to see your WIP project posted here. I'm confused; are you referring to GP's link to `gimli`, or your own repo in the OP?

[deleted]

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

#16
post #4

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

It is heavily WIP at the moment so I haven't published to opam just yet. You'll need to compile from source if you want to try it out. I'm filling in examples as I need them and publishing code when it isn't too terrible to look at.

Ah, no worries. I'm just now realizing that you weren't even the one who submitted this to HN.

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

#17
post #13
post #2

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

Bad idea to delve too deep into the binary.

"The dwarves debugged too greedily and too deep. You know what they awoke in the darkness of GDB-dum... stack corruption and flame.“

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

#19
post #17
post #13

Earlier quoted context omitted.

Bad idea to delve too deep into the binary.

"The dwarves debugged too greedily and too deep. You know what they awoke in the darkness of GDB-dum... stack corruption and flame.“

"The dark fire will not avail you, flame of Unix. Go back to the Segfault! You cannot crash."

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

#20

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.

Surely, you are joking about the "little" part.

The Dwarf 5 document is over 400 pages long (c.f. https://dwarfstd.org/doc/DWARF5.pdf).

Post reply on HN