Line data Source code
1 : use lief_ffi as ffi;
2 :
3 : pub mod debug_info;
4 : pub mod compilation_unit;
5 : pub mod function;
6 : pub mod variable;
7 : pub mod types;
8 : pub mod scope;
9 :
10 : use crate::common::into_optional;
11 :
12 : #[doc(inline)]
13 : pub use debug_info::DebugInfo;
14 :
15 : #[doc(inline)]
16 : pub use compilation_unit::CompilationUnit;
17 :
18 : #[doc(inline)]
19 : pub use function::Function;
20 :
21 : #[doc(inline)]
22 : pub use variable::Variable;
23 :
24 : #[doc(inline)]
25 : pub use scope::Scope;
26 :
27 : #[doc(inline)]
28 : pub use types::Type;
29 :
30 : /// Load a DWARF from its file path
31 0 : pub fn load(path: &str) -> Option<DebugInfo> {
32 0 : into_optional(ffi::DWARF_DebugInfo::from_file(path))
33 0 : }
|