[−][src]Crate pdb
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(data)) if data.function => { // we found the location of a function! println!("{:x}:{:08x} is {}", data.segment, data.offset, symbol.name()?); } _ => {} } }
Re-exports
pub use fallible_iterator::FallibleIterator; |
Structs
AnnotationReferenceSymbol |
The information parsed from a symbol record with kind |
ArgumentList |
The information parsed from a type record with kind |
ArrayType |
The information parsed from a type record with kind
|
BaseClassType |
The information parsed from a type record with kind |
BitfieldType |
The information parsed from a type record with kind |
ClassType |
The information parsed from a type record with kind
|
ConstantSymbol |
The information parsed from a symbol record with kind |
DataReferenceSymbol |
The information parsed from a symbol record with kind |
DataSymbol |
The information parsed from a symbol record with kind
|
DebugInformation |
Provides access to the "DBI" stream inside the PDB. |
EnumerateType |
The information parsed from a type record with kind |
EnumerationType |
The information parsed from a type record with kind |
FieldAttributes | |
FieldList |
The information parsed from a type record with kind |
FunctionAttributes | |
MemberFunctionType |
The information parsed from a type record with kind |
MemberType |
The information parsed from a type record with kind |
MethodList |
The information parsed from a type record with kind |
MethodListEntry |
An entry in a |
MethodType |
The information parsed from a type record with kind |
ModifierType |
The information parsed from a type record with kind |
Module |
Represents a module from the DBI stream. |
ModuleInfo |
This struct contains data about a single module from its module info stream. |
ModuleIter |
A |
NestedType |
The information parsed from a type record with kind
|
OverloadedMethodType |
The information parsed from a type record with kind |
PDB |
|
PDBInformation |
A PDB info stream header parsed from a stream. |
PointerAttributes | |
PointerType |
The information parsed from a type record with kind |
PrimitiveType |
Represents a primitive type like |
ProcedureReferenceSymbol |
The information parsed from a symbol record with kind
|
ProcedureType |
The information parsed from a type record with kind |
PublicSymbol |
The information parsed from a symbol record with kind |
RawString |
|
SourceSlice |
Represents an offset + size of the source file. |
StaticMemberType |
The information parsed from a type record with kind |
StreamName |
A named stream contained within the PDB file. |
StreamNames |
A list of named streams contained within the PDB 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. |
ThreadStorageSymbol |
The information parsed from a symbol record with kind
|
Type |
Represents a type from the type table. A |
TypeFinder |
A |
TypeInformation |
|
TypeIter |
A |
TypeProperties | |
UnionType |
The information parsed from a type record with kind |
UserDefinedTypeSymbol |
The information parsed from a symbol record with kind |
VirtualBaseClassType |
The information parsed from a type record with kind |
VirtualFunctionTablePointerType |
The information parsed from a type record with kind |
Enums
ClassKind |
Used by |
Error |
An error that occurred while reading or parsing the PDB. |
Indirection | |
PrimitiveKind | |
SymbolData |
|
TypeData |
Encapsulates parsed data about a |
Variant |
Traits
Source |
The |
SourceView |
An owned, droppable, read-only view of the source file which can be referenced as a byte slice. |
Type Definitions
NameIter | |
Result | |
TypeIndex |
|