Crates.io | addr2line |
lib.rs | addr2line |
version | 0.24.2 |
source | src |
created_at | 2016-12-03 21:33:01.794743 |
updated_at | 2024-10-04 09:02:01.134792 |
description | A cross-platform symbolication library written in Rust, using `gimli` |
homepage | |
repository | https://github.com/gimli-rs/addr2line |
max_upload_size | |
id | 7456 |
size | 158,835 |
addr2line
provides a cross-platform library for retrieving per-address debug information
from files with DWARF debug information. Given an address, it can return the file name,
line number, and function name associated with that address, as well as the inline call
stack leading to that address.
The crate has a CLI wrapper around the library which provides some of
the functionality of the addr2line
command line tool distributed with
GNU binutils.
addr2line
crate to your Cargo.toml
.addr2line::Loader::new
with the file path.addr2line::Loader::find_location
or addr2line::Loader::find_frames
to look up debug information for an address.If you want to provide your own file loading and memory management, use
addr2line::Context
instead of addr2line::Loader
.
addr2line
optimizes for speed over memory by caching parsed information.
The DWARF information is parsed lazily where possible.
The library aims to perform similarly to equivalent existing tools such
as addr2line
from binutils, eu-addr2line
from elfutils, and
llvm-addr2line
from the llvm project. Current benchmarks show a performance
improvement in all cases:
Licensed under either of
LICENSE-APACHE
or https://www.apache.org/licenses/LICENSE-2.0)LICENSE-MIT
or https://opensource.org/licenses/MIT)at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.