How can I get a GUID from a PDB file?

Does anyone know how to get the GUID from a PDB file?

I use the SDK to access the Microsoft Debug interface

http://msdn.microsoft.com/en-us/library/f0756hat.aspx

and getting E_PDB_INVALID_SIG when passing to the GUID, which I expect when I try to load the PDB.

I just wanted to know the PDB GUID, so I can be sure that it is incompatible, not just the PDB, which is somehow damaged.

Is there a tool that can do this? I tried dia2dump and dumpbin, but without joy ...

Many thanks,

thoughton.

+3
source share
3 answers

Code Project, PDB Inspector, . , , , :

IDiaDataSource::LoadDataFromPdb
IDiaDataSource::openSession
IDiaSession::get_global_scope
IDiaSymbol::get_guid
+4

API- dbghelp. PDB, chkmatch, dll/exe WinDbg ! sym noisy,! lmi ! chksym.

PDB - ! chkmatch , , GUID.

+1

a DIA DbgHelp ++. , , , .

+1

Source: https://habr.com/ru/post/1738527/


All Articles