Durin 是一个用于读取和写入 Dwarf 调试格式的库。
Durin is a library for reading and writing the Dwarf debugging format

原始链接: https://github.com/tmcgilchrist/durin

Durin 是一个用于读取和写入矮人调试格式的库。它的目标是支持:读取 ELF 和 MachO 目标文件中的 DWARF 5 编码信息。将 DWARF 5 信息写入 ELF 和 MachO 目标文件。将 DWARF 5 信息写入汇编文件。未来它可能支持 DWARF 4 或更新版本的 DWARF 标准。它应该提供:跨平台:durin 对您使用的目标文件类型不做任何假设。提供您自己的缓冲区或使用对象库。延迟:您可以迭代编译单元,而无需解析其内容。仅解析您迭代的调试信息条目 (DIE) 树。durin 还使用 DW_AT_sibling 引用,在可能的情况下避免解析 DIE 的子项以查找其下一个兄弟节点。要将 durin 作为依赖项安装,请运行:并将 durin 添加到您的项目的 dune-project 或 *.opam 文件中。文档在 ocaml.org 上。示例程序在 example 目录中。

黑客新闻 新的 | 过去的 | 评论 | 提问 | 展示 | 招聘 | 提交 登录 Durin 是一个用于读取和写入 Dwarf 调试格式的库 (github.com/tmcgilchrist) 7 分,由 mooreds 1小时前发布 | 隐藏 | 过去的 | 收藏 | 讨论 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 申请YC | 联系方式 搜索:
相关文章

原文

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 into ELF and MachO object files.
  • Writing DWARF 5 information into assembly files.

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

It should provide:

  • Cross-platform: durin makes no assumptions about what kind of object file you're working with. Provide your own Buffer or use the object library.
  • Lazy: you can iterate compilation units without parsing their contents. Parse only as many debugging information entry (DIE) trees as you iterate over. durin also uses DW_AT_sibling references to avoid parsing a DIE's children to find it's next sibling where possible.

To install durin as a dependency, run:

And add durin to your project's dune-project or *.opam files.

  • Documentation on ocaml.org
  • Example programs in example directory
联系我们 contact @ memedata.com