PeCodeViewInfo
Description
CodeView debug record extracted from the PE Debug Directory. The matching PDB file is identified by its (guid, age) pair; the pdb_path is a hint from the linker (usually an absolute path on the build machine – callers should treat it as a basename plus fallback search rather than an authoritative location).
Fields
| Name | Description |
|---|---|
present |
True if the PE contained a CodeView entry. False for binaries built without -debug / /DEBUG or stripped of debug info entirely. |
guid |
16-byte unique identifier matching the corresponding PDB’s signature. |
age |
Generation counter incremented on every PDB write; the PDB must have the same age to be considered a match. |
pdb_path |
NUL-terminated string borrowed from the PE bytes. Valid until PeFileDeinit. |
Usage example (Cross-references)
Usage examples (Cross-references)
- In
Pe.c:284:
// it to a file offset first.
static void pe_decode_codeview(PeContext *ctx) {
PeCodeViewInfo *cv = &ctx->out->codeview;
cv->present = false;- In
Pe.h:72:
u32 age;
const char *pdb_path;
} PeCodeViewInfo;
///
- In
Pe.h:107:
u32 size_of_image;
PeSections sections;
PeCodeViewInfo codeview;
} PeFile;
Last updated on