pdb 0.8.0

A parser for Microsoft PDB (Program Database) debugging information
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[test]
fn pdb_info() {
    let file = std::fs::File::open("fixtures/self/foo.pdb").expect("opening file");

    let mut pdb = pdb::PDB::open(file).expect("opening pdb");
    let pdb_info = pdb.pdb_information().expect("pdb information");

    assert_eq!(pdb_info.age, 2);
    assert_eq!(
        pdb_info.guid,
        "2B3C3FA5-5A2E-44B8-8BBA-C3300FF69F62".parse().unwrap(),
    );
    assert_eq!(pdb_info.signature, 0x587B_A621);
}