rainers / cv2pdb

converter of DMD CodeView/DWARF debug information to PDB files
Artistic License 2.0
466 stars 110 forks source link

produces empty pdb for wined3d #75

Closed Trass3r closed 2 years ago

Trass3r commented 2 years ago

Tested the tool on https://github.com/Trass3r/wined3d4win/suites/6333289962/artifacts/227925899. It produces a working pdb for ddraw.dll but only a small 11KB one for wined3d.dll with mostly zeros inside.

rainers commented 2 years ago

It seems the conversion stumbles over the compilation unit hlsl.yy.c (some exception output when the pdb is closed). I suspect this is a generated file with a large parser function. Needs some more investigation...

Trass3r commented 2 years ago

Yeah comes from https://github.com/wine-mirror/wine/blob/master/libs/vkd3d/libs/vkd3d-shader/hlsl.y. Not important to get that one right.

rainers commented 2 years ago

Finally figured this one out: the problem is caused by struct debug information that exceeds 64 kB.

Trass3r commented 2 years ago

Thanks seems to work now.