这是indexloc提供的服务,不要输入任何密码
Skip to content

hitzhangjie/dwarfviewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DWARF Viewer

A powerful tool for viewing and analyzing DWARF debugging information from ELF executables. It provides both command-line and web interface for exploring debug information entries (DIEs).

Features

  • Reads DWARF debugging information from ELF executables

    the fileparser could be extended to support Mach-O, PE, etc.

  • Displays the DIEs and their Children recursively
  • Displays the DIEs and their siblings recursively
  • Supports filtering DIEs using regular expressions
  • Interactive web interface for exploring DIEs
  • Hierarchical navigation of DIE relationships
  • Support for all DWARF tags and attributes

Requirements

  • Go 1.21 or later
  • ELF executable with DWARF debugging information

Installation

go install -v github.com/hitzhangjie/dwarfviewer@latest

or

git clone https://github.com/hitzhangjie/dwarfviewer
cd dwarfviewer
go install -v

Testing

Run the tests and learn how to use it before inspecting your own ELF file.

# Build the program
make

# Run tests
make test
make test2
make test3
make test4

Usage

Command Line Interface

# Build the program
go build

# View all DWARF information
./dwarfviewer -file <path-to-elf-file>

# Filter DIEs by name using regex
./dwarfviewer -file <path-to-elf-file> -pattern "main"

# Launch web interface
./dwarfviewer -file <path-to-elf-file> -webui

Web Interface

When launched with the -webui flag, the tool provides an interactive web interface at http://localhost:8080 with the following features:

  • Hierarchical view of all DIEs
  • Search functionality for filtering DIEs
  • Detailed view of DIE attributes and values
  • Navigation breadcrumbs for exploring DIE relationships
  • Interactive tree view of DIE children

Finally

Let's delve into the DWARF debugging information details.

About

it's a DWARF viewer to help view and understand the DWARF data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published