PdbInfo
Description
PDB info-stream contents (stream #1). Used by callers that want to validate the PDB matches a particular PE’s CodeView record before trusting any names out of it.
Usage example (Cross-references)
Usage examples (Cross-references)
- In
Pdb.h:66:
u32 age; // must match PE codeview.age
u8 guid[16]; // must match PE codeview.guid
} PdbInfo;
///
- In
Pdb.h:91:
u32 block_size;
u32 num_streams;
PdbInfo info;
PdbFunctions functions;
// `dir_stream_blocks` borrows from `data` (it's an array of u32
- In
PdbCache.c:82:
// disagree the names are probably stale -- worse than no symbols.
const PeCodeViewInfo *pe_cv = PeCodeView(&entry->pe);
const PdbInfo *pdb_inf = PdbInfoStream(&entry->pdb);
if (pe_cv->age != pdb_inf->age || MemCompare(pe_cv->guid, pdb_inf->guid, 16) != 0) {
LOG_ERROR("PdbCache: GUID/age mismatch between PE and PDB for {}", entry->module_path);- In
Pdb.c:2277:
}
const PdbInfo *pi = PdbInfoStream(&pdb);
ok = pi->version == 0x01020304;
ok = ok && pi->signature == 0x05060708;
Last updated on