Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/dbi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,17 @@ impl<'s> DebugInformation<'s> {
}
}

/// Returns whether or not this PDB has been marked as stripped. Stripped PDBs do not contain
/// type information, line number information, or per-object CV symbols.
///
/// This flag is set when a PDB is written with [/PDBSTRIPPED] by MSVC.
///
/// [/PDBSTRIPPED]: https://learn.microsoft.com/en-us/cpp/build/reference/pdbstripped-strip-private-symbols?view=msvc-170
pub fn is_stripped(&self) -> bool {
// flags.fStripped
(self.header.flags & 0x2) != 0
}

/// Returns an iterator that can traverse the modules list in sequential order.
pub fn modules(&self) -> Result<ModuleIter<'_>> {
let mut buf = self.stream.parse_buffer();
Expand Down