问题
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?
回答1:
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
回答2:
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)
来源:https://stackoverflow.com/questions/37269289/which-tool-to-use-to-open-pdb-symbol-files