StructLayout icon indicating copy to clipboard operation
StructLayout copied to clipboard

Troublesome unions with PDB extraction

Open fyrstik268 opened this issue 2 years ago • 3 comments

[Visual Studio Community 2022 v17.1.5 / Struct Layout v0.6.0, PDB extraction]

I don't think this is correct. image

It is impossible to interact with struct C when an array is introduced. image

It works fine with Clang extraction, but I'm running into some troubles with it not parsing my #includes properly.

fyrstik268 avatar Apr 20 '22 22:04 fyrstik268

Interesting! Thanks for letting me know.

It is strange that it is not bundling everything inside the top union. The DIA SDK, used to extract the symbols from the PDB, sometimes does not provide all the needed information, so in some cases I need to reconstruct what I can with the little info extracted. It can also be that I am using the sdk wrong or missing something.

I will investigate and give it a try when I have some spare time.

Viladoman avatar Apr 22 '22 00:04 Viladoman

There's also a little bit of overlapping text under the right circumstances. image

fyrstik268 avatar Apr 24 '22 19:04 fyrstik268

I finally had a look into this yesterday. Sadly the DIA sdk is not reporting some of these intermediate unions. I need to investigate if I can use a different library, like raw_pdb, to read the pdbs and produce more stable results.

Viladoman avatar Apr 24 '23 04:04 Viladoman