如何从 .PDB 文件创建 .MAP 文件
我想创建一个简单的 .MAP 文件,列出 PDB 文件中的地址和符号名称。我的自然倾向是寻找一个名为“pdb2map”的工具,但我得到的大多数结果似乎都引用了调试 Microsoft .NET 和 Microsoft Windows 的应用程序中包含的 CD 中的示例程序>,不幸的是它也没有发布在“网上”。
有人知道这方面的好工具吗?谢谢。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您同时拥有 application.exe 和 application.pdb 文件,请将它们放在同一目录中并运行:
dumpbin 随 Visual Studio 一起提供,也可能与其他工具一起提供。
If you have both the application.exe and the application.pdb files, put them in the same directory and run:
dumpbin comes with Visual Studio and probably with other tools as well.
看来这个文件可以解决问题:
http: //www.ecs.syr.edu/faculty/fawcett/handouts/testingseminar/Chapter12And14_CodeAndDocs/PDB2MAP.cpp
It seems that this file will do the trick:
http://www.ecs.syr.edu/faculty/fawcett/handouts/testingseminar/Chapter12And14_CodeAndDocs/PDB2MAP.cpp
MSDN 杂志的 BugSlayer 文章中也讨论了 pdb2map。不幸的是,本文在线版本的代码存档已被已删除。
John Robbins,作者,有一个博客并且可能愿意如果您需要,请发布代码。
顺便说一句,这本书非常值得一买。
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.