pub struct DebugInformation<'s> { /* private fields */ }Expand description
Provides access to the “DBI” stream inside the PDB.
This is only minimally implemented; it’s really just so PDB can find the global symbol table.
§Example
let file = std::fs::File::open("fixtures/self/foo.pdb")?;
let mut pdb = pdb::PDB::open(file)?;
let dbi = pdb.debug_information()?;
let mut modules = dbi.modules()?;
while let Some(module) = modules.next()? {
println!("module name: {}, object file name: {}",
module.module_name(), module.object_file_name());
}
Implementations§
Source§impl<'s> DebugInformation<'s>
impl<'s> DebugInformation<'s>
Sourcepub fn machine_type(&self) -> Result<MachineType>
pub fn machine_type(&self) -> Result<MachineType>
Returns the target’s machine type (architecture).
Sourcepub fn modules(&self) -> Result<ModuleIter<'_>>
pub fn modules(&self) -> Result<ModuleIter<'_>>
Returns an iterator that can traverse the modules list in sequential order.
Trait Implementations§
Auto Trait Implementations§
impl<'s> Freeze for DebugInformation<'s>
impl<'s> !RefUnwindSafe for DebugInformation<'s>
impl<'s> !Send for DebugInformation<'s>
impl<'s> !Sync for DebugInformation<'s>
impl<'s> Unpin for DebugInformation<'s>
impl<'s> !UnwindSafe for DebugInformation<'s>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more