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

Returns the target’s machine type (architecture).

Returns this PDB’s original age.

This number is written by the linker and should be equal to the image’s age value. In contrast, PDBInformation::age may be bumped by other tools and should be greater or equal to the image’s age value.

Old PDB files may not specify an age, in which case only PDBInformation::age should be checked for matching the image.

Returns an iterator that can traverse the modules list in sequential order.

Returns an iterator that can traverse the section contributions list in sequential order.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.