getsentry / pdb

A parser for Microsoft PDB (Program Database) debugging information
https://docs.rs/pdb/
Apache License 2.0
367 stars 68 forks source link

Add support for LF_TAGGED_UNION, LF_TUCASE #149

Open nikitalita opened 8 months ago

nikitalita commented 8 months ago

These appear to have been added quite recently to the format; they're present in the latest DIA SDK that comes with Visual Studio 2022 (17.7.6)

LF_TAGGED_UNION = 0x151e Appears to have the same structure as LF_UNION2 Has a UdtType of UdtTaggedUnion

LFTUCASE = 0x1520 Corresponds to SymTagTaggedUnionCase in the latest cvconst.h (Visual Studio 2022, 17.7.6) Unsure of which symbol record that SymTagTaggedUnionCase corresponds to; they don't appear to have added any additional `S` symbol records that you don't already have. Appears to have a type index and a name as members.