Registry / utility / addr2line

addr2line

JSON →
library0.26.1rscratesunverified

A cross-platform symbolication library using gimli for converting addresses to function names and line numbers.

# Cargo.toml [dependencies] addr2line = "0.26.1"
INSTALL
IMPORT
SIG · ADDR2LINE
A
addr2line
utilityrustv0.26.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Context
use addr2line::Context;

Load a binary and resolve an address to a source location.

use addr2line::Context; use std::fs; let data = fs::read("/path/to/binary").unwrap(); let ctx = Context::new(&data).unwrap(); if let Some(location) = ctx.find_location(0x1234).unwrap() { println!("File: {:?}, Line: {:?}", location.file, location.line); }
Debug
Known issues
gotchaRequires debug symbols in the binary for accurate results.
fix
Compile the binary with debuginfo enabled (e.g., -g flag).
affects: *
Upgrade
Version history
0.26.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
40 hits · last 30 days
node
32
Meta
1
OpenAI (training)
1
Resources
addr2line — cargo add addr2line · libregistry