Skip to content

Commit 23d033e

Browse files
kjkclaude
andcommitted
pdb: Add isStripped flag to DebugInformation
Port of getsentry/pdb#143. Exposes whether the PDB was built with /PDBSTRIPPED, meaning it lacks type info, line info, and per-object CV symbols. Derived from bit 0x2 of the DBI header flags. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 341bc00 commit 23d033e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pdb/src/dbi.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ export interface DebugInformation {
8383
modules: DbiModule[];
8484
machineType: MachineType;
8585
age: number | null;
86+
/** Whether this PDB has been stripped (no type info, line info, or per-object CV symbols). */
87+
isStripped: boolean;
8688
extraStreams: DbiExtraStreams;
8789
sectionContributions: DbiSectionContribution[];
8890
}
@@ -212,6 +214,7 @@ export function parseDebugInformation(stream: MsfStream): DebugInformation {
212214
modules,
213215
machineType,
214216
age,
217+
isStripped: (header.flags & 0x2) !== 0,
215218
extraStreams,
216219
sectionContributions,
217220
};

0 commit comments

Comments
 (0)