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