Reputation: 2883
I have .pdb
file, downloaded from MS symbols server. I need to fetch list of symbols (functions, arguments, anything it has). There is a tool on CodeProject, but it only reports modules. There is DbgHelp
API, but it only could be attcahed to running process. How can I read .pdb
file offline?
Upvotes: 4
Views: 17966
Reputation: 143
You can also use Visual Studio's Dia2Dump sample program to dump human-readable output from a PDB file, including its public symbols.
Be sure to build it as a 32-bit application though, or you might run into some problems with it. (See dia2dump: CoCreateInstance failed - HRESULT = 80040154)
Upvotes: 3
Reputation: 3256
Good News for anyone still looking,
The information you seek is now open source!
https://github.com/Microsoft/microsoft-pdb
Some real interesting stuff there. Like this pdbdump.cpp file, with its dumpPublics function or its main flow controls. Good documentation too
Upvotes: 3