Which tool to use to open .pdb (symbol) files?

本小妞迷上赌 提交于 2020-01-12 10:35:18

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!