☰ Menu
Home›Command-line Tools›abi-dumper
CLI Open source 1 installs/mo

abi-dumper for Mac

abi-dumper

ABI Dumper — a tool to dump ABI of an ELF object containing DWARF debug info.

abi-dumper — overview

ABI Dumper 1.4


ABI Dumper — a tool to dump ABI of an ELF object containing DWARF debug info.

Contents

About Install Usage Filter public ABI Check for ABI changes

About

The tool is intended to be used with ABI Compliance Checker tool for tracking ABI changes of a C/C++ library or kernel module: https://github.com/lvc/abi-compliance-checker

The tool is developed by Andrey Ponomarenko.

Install

sudo make install prefix=/usr

Requires

Perl 5 Elfutils (eu-readelf) GNU Binutils Universal Ctags (https://github.com/universal-ctags/ctags) Vtable Dumper >= 1.1 (https://github.com/lvc/vtable-dumper) ABI Compliance Checker >= 2.2 (https://github.com/lvc/abi-compliance-checker) GCC C++

Usage

Input objects should be compiled with -g -Og -fno-eliminate-unused-debug-types additional options to contain DWARF debug info.

abi-dumper libTest.so -o ABI.dump abi-dumper Module.ko.debug

Examples

abi-dumper lib/libssh.so.3 abi-dumper drm/nouveau/nouveau.ko.debug

Docker

You can try Docker image if the tool is not packaged for your Linux distribution (example for Harfbuzz):

FROM ebraminio/abi-dumper RUN apt update && apt install -y ragel cpanminus && git clone https://github.com/harfbuzz/harfbuzz && cd harfbuzz && CFLAGS="-Og -g" CXXFLAGS="-Og -g" ./autogen.sh && make && cd .. && abi-dumper find . -name 'libharfbuzz.so.0.' && cpanm JSON && perl -le 'use JSON; print to_json(do shift, {canonical => 1, pretty => 1});' ./ABI.dump > ABI.json

Adv. usage

For advanced usage, see output of --help option.

Filter public ABI

abi-dumper libTest.so -public-headers PATH

PATH — path to the install tree of a library.

Check for ABI changes

abi-dumper libTest.so.0 -o ABIv0.dump abi-dumper libTest.so.1 -o ABIv1.dump abi-compliance-checker -l libTest -old ABIv0.dump -new ABIv1.dump

Details

转储包含 DWARF 调试信息的 ELF 对象的 ABI

How to install abi-dumper

  1. Open Terminal (press ⌘ + Space and type “Terminal”).
  2. If Homebrew is not installed yet, run the command below first.
  3. Run this command:

Latest 10 releases

Last updated 2020-11-20; current version 1.2, with the latest 3 releases listed.

VersionReleasedTypeSizemacOSWindowsLinux
1.22020-11-20Stable————
1.12017-08-30Stable————
1.02017-06-17Stable————

Data from GitHub Releases; stable releases first, each group sorted newest first.

Prebuilt bottle platforms

Official Homebrew bottles cover:

  • all

⚠️ No prebuilt bottle for Intel Macs; Intel users need brew install --build-from-source to build from source.

Compared with similar apps

Only public metadata is compared, with no subjective recommendation; see the compare pages for field-by-field comparisons.

Compared with similar apps
AppVersionLicenseArchitecture30-day installs
abi-dumper1.2LGPL-2.1-or-laterCLI1
dwarf0.4.0GPL-2.0-or-laterCLI2
ccfits2.7CFITSIOCLI1
libabigail3.0Apache-2.0 WITH LLVM-exceptionCLI0

Similar apps: Command-line Tools

Leave a comment

评论表单加载中…