Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Troublesome unions with PDB extraction #30

Open
fyrstik268 opened this issue Apr 20, 2022 · 3 comments
Open

Troublesome unions with PDB extraction #30

fyrstik268 opened this issue Apr 20, 2022 · 3 comments
Labels
bug Something isn't working
Projects

Comments

@fyrstik268
Copy link

fyrstik268 commented Apr 20, 2022

[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 fyrstik268 changed the title Troublesome Unions with PDP extraction Troublesome unions with PDB extraction Apr 20, 2022
@Viladoman Viladoman added the bug Something isn't working label Apr 22, 2022
@Viladoman
Copy link
Owner

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.

@fyrstik268
Copy link
Author

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

@Viladoman
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Parser
  
Awaiting triage
Development

No branches or pull requests

2 participants