1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//! # Rudy DB
//!
//! A user-friendly library for interacting with debugging information of Rust compiled artifacts using DWARF.
//!
//! This library provides lazy evaluation and incremental recomputation via salsa for use in
//! long-running processes like debuggers.
//!
//! ## Basic Usage
//!
//! ```no_run
//! use rudy_db::{DebugDb, DebugInfo};
//! use anyhow::Result;
//!
//! fn main() -> Result<()> {
//! // Create a new database
//! let mut db = DebugDb::new();
//!
//! // Create a DebugInfo instance for your binary
//! let debug_info = DebugInfo::new(&db, "path/to/binary")?;
//!
//! // Resolve an address to source location
//! if let Ok(Some(location)) = debug_info.address_to_location(0x12345) {
//! println!("Address 0x12345 is at {}:{}", location.file, location.line);
//! }
//!
//! Ok(())
//! }
//! ```
// crate re-exports
pub use rudy_dwarf;
pub use rudy_types;
// common type re-exports
pub use DataResolver;
pub use DebugDatabaseImpl as DebugDb;
pub use DebugInfo;
pub use ;
pub use SelfType;
pub use ;