[][src]Struct pdb::DebugInformation

pub struct DebugInformation<'s> { /* fields omitted */ }

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());
}

Methods

impl<'s> DebugInformation<'s>[src]

pub fn machine_type(&self) -> Result<MachineType>[src]

Returns the target's machine type (architecture).

pub fn modules(&self) -> Result<ModuleIter>[src]

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

Trait Implementations

impl<'s> Debug for DebugInformation<'s>[src]

Auto Trait Implementations

impl<'s> !Send for DebugInformation<'s>

impl<'s> !Sync for DebugInformation<'s>

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.