views:

270

answers:

3

I would like 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.

+2  A: 

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.

Michael Burr
Hmm, I couldn't find any kind of contact info on the blog, though ...
SamB
Sam, take a look at http://www.wintellect.com/Contact.aspx The comments about contacting them indicate they probably wouldn't mind being contacted. Any book by Robbins, Richter or Pietrek are highly recommended.
Stephen Kellett
@SamB: I think the Wintellect contact info Stephen Kellett pointed to will probably work best, but it's possible that his email address from when he wrote the BugSlayer columns in MSDN Magazine might still work (though I'd honestly be a bit surprised): [email protected]
Michael Burr
+1  A: 

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.

Alex O
+1  A: 

It seems that this file will do the trick:

http://www.ecs.syr.edu/faculty/fawcett/handouts/testingseminar/Chapter12And14_CodeAndDocs/PDB2MAP.cpp

yurymik