Last time I coded
peinfo, https://github.com/angeleno/peinfo to get information from a PE file. It listed the guid for pdb file generated alongwith.
This is helpful as it is, but at times you have pdb file and want to query it’s guid.
I did not find anything handy for it, thus ended up coding one myself. Here the Debug Interface Access SDK is of great help.
The idea is pretty simple and straight foward:
- Load PDB as DataSource,
- Open Session,
- Get GlobalScope,
- Get GUID,