I would like开发者_JAVA技巧 to create a simple .MAP file listing addresses and symbol names from a PDB file. My natural inclination was to look for a tool named "pdb2map", but most of the results I get for that appear to refer to a sample program from the CD included with Debugging Applications for Microsoft .NET and Microsoft Windows, which unfortunately is not also posted on the 'net.
Anyone know a good tool for this? Thanks.
If you have both the application.exe and the application.pdb files, put them in the same directory and run:
dumpbin /map application.exe > application.map
dumpbin comes with Visual Studio and probably with other tools as well.
It seems that this file will do the trick:
http://www.ecs.syr.edu/faculty/fawcett/handouts/testingseminar/Chapter12And14_CodeAndDocs/PDB2MAP.cpp
pdb2map was also discussed in a BugSlayer article in MSDN magazine. Unfortunately, the code archive for the online version of the article has been removed.
John Robbins, the author, has a blog and may be willing to post the code if you request it.
BTW, the book is well worth getting.
精彩评论