[−]Struct symbolic::debuginfo::pdb::pdb::DebugInformation
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
impl<'s> DebugInformation<'s>
pub fn machine_type(&self) -> Result<MachineType, Error>
Returns the target's machine type (architecture).
pub fn age(&self) -> Option<u32>
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.
pub fn modules(&self) -> Result<ModuleIter<'_>, Error>
Returns an iterator that can traverse the modules list in sequential order.
pub fn section_contributions(
&self
) -> Result<DBISectionContributionIter<'_>, Error>
&self
) -> Result<DBISectionContributionIter<'_>, Error>
Returns an iterator that can traverse the section contributions list in sequential order.
Trait Implementations
impl<'s> Debug for DebugInformation<'s>
Auto Trait Implementations
impl<'s> !RefUnwindSafe for DebugInformation<'s>
[src]
impl<'s> !Send for DebugInformation<'s>
[src]
impl<'s> !Sync for DebugInformation<'s>
[src]
impl<'s> Unpin for DebugInformation<'s>
[src]
impl<'s> !UnwindSafe for DebugInformation<'s>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,