libelfin

C++11 ELF/DWARF parser

  • 所有者: aclements/libelfin
  • 平台:
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

Libelfin is a from-scratch
C++11 library for reading ELF binaries and DWARFv4 debug information.

Quick start

make, and optionally make install. You'll need GCC 4.7 or later.

Features

  • Native C++11 code and interface, designed from scratch to interact
    well with C++11 features, from range-based for loops to move
    semantics to enum classes.

  • Libelfin fully implements parsing for Debugging Information Entries
    (DIEs), the core data structure used by the DWARF format, as well as
    most DWARFv4 tables.

  • Supports all DWARFv4 DIE value types except location lists and
    macros.

  • Nearly complete evaluator for DWARFv4 expressions and location
    descriptions.

  • Complete interpreter for DWARFv4 line tables.

  • Iterators for easily and naturally traversing compilation units,
    type units, DIE trees, and DIE attribute lists.

  • Every enum value can be pretty-printed.

  • Large collection of type-safe DIE attribute fetchers.

Non-features

Libelfin implements a syntactic layer for DWARF and ELF, but not a
semantic layer. Interpreting the information stored in DWARF DIE
trees still requires a great deal of understanding of DWARF, but
libelfin will make sense of the bytes for you.

Using libelfin

To build against libdwarf++, use, for example

g++ -std=c++11 a.cc $(pkg-config --cflags --libs libdwarf++)

To use a local build of libelfin, set PKG_CONFIG_PATH. For example,

export PKG_CONFIG_PATH=$PWD/elf:$PWD/dwarf

There are various example programs in examples/.

Status

Libelfin is a good start. It's not production-ready and there are
many parts of the DWARF specification it does not yet implement, but
it's complete enough to be useful for many things and is a good deal
more pleasant to use than every other debug info library I've tried.

主要指標

概覽
名稱與所有者aclements/libelfin
主編程語言C++
編程語言Emacs Lisp (語言數: 6)
平台
許可證MIT License
所有者活动
創建於2013-09-28 03:21:30
推送於2024-06-18 05:37:46
最后一次提交2024-03-10 18:56:59
發布數3
最新版本名稱v0.3 (發布於 )
第一版名稱v0.1 (發布於 2013-09-27 23:30:17)
用户参与
星數330
關注者數19
派生數105
提交數152
已啟用問題?
問題數49
打開的問題數35
拉請求數15
打開的拉請求數9
關閉的拉請求數8
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?