Crate pdb [−] [src]
The pdb
create parses Microsoft PDB (Program Database) files. PDB files contain debugging
information produced by most compilers that target Windows, including information about symbols,
types, modules, and so on.
Usage
PDB files are accessed via the pdb::PDB
object.
Example
let file = std::fs::File::open("fixtures/self/foo.pdb")?; let mut pdb = pdb::PDB::open(file)?; let symbol_table = pdb.global_symbols()?; let mut symbols = symbol_table.iter(); while let Some(symbol) = symbols.next()? { match symbol.parse() { Ok(pdb::SymbolData::PublicSymbol{ function: true, segment, offset, .. }) => { // we found the location of a function! println!("{:x}:{:08x} is {}", segment, offset, symbol.name()?); } _ => {} } }
Reexports
pub use fallible_iterator::FallibleIterator; |
Structs
DebugInformation |
Provides access to the "DBI" stream inside the PDB. |
FieldAttributes | |
FunctionAttributes | |
MethodListEntry | |
PDB |
|
RawString |
|
SourceSlice |
Represents an offset + size of the source file. |
Symbol |
Represents a symbol from the symbol table. |
SymbolIter |
A |
SymbolTable |
PDB symbol tables contain names, locations, and metadata about functions, global/static data, constants, data types, and more. |
Type |
Represents a type from the type table. A |
TypeFinder |
A |
TypeInformation |
|
TypeIter |
A |
TypeProperties |
Enums
ClassKind |
Used by |
EnumValue | |
Error |
An error that occurred while reading or parsing the PDB. |
Indirection | |
PrimitiveType | |
SymbolData |
|
TypeData |
Encapsulates parsed data about a |
Traits
Source |
The |
SourceView |
An owned, droppable, read-only view of the source file which can be referenced as a byte slice. |
Type Definitions
Result | |
TypeIndex |
|