Module pdb
Expand description
Module for processing PDB file
This module exposes an API similar to the crate::dwarf
module to process PDB
files.
One can instantiate a crate::pdb::DebugInfo
using either crate::generic::Binary::debug_info
or
crate::pdb::load
.
fn read_pdb(file: &str) {
let pdb = lief::pdb::load(file).unwrap();
for symbol in pdb.public_symbols() {
println!("name: {}", symbol.name());
}
}
Modules§
- build_
metadata - compilation_
unit - This module wraps a PDB compilation unit
- debug_
info - function
- public_
symbol - This module wraps a PDB public symbol (stream number
n+5
) - types
Structs§
- Build
Metadata - This class wraps build metadata represented by the codeview symbols:
S_COMPILE3, S_COMPILE2, S_BUILDINFO
- Compilation
Unit - This structure represents a CompilationUnit (or Module) in a PDB file
- Debug
Info - Main interface over a PDB.
- Function
- Public
Symbol - This class provides general information (RVA, name) about a symbol from the PDB’s public symbol stream (or Public symbol hash stream)