我正在寻找 C++处理 .PDB 文档中的调试符号的库
创建一个模块来解码 PDB 文档中定义的结构;谁能给我提供一个模块,可以从 PDB 文档中提取所需的调试符号?谢谢。
Creating a module that will decode structures defined in a PDB document; can anyone provide me with a module that would extract the required debugging symbols from the PDB document? Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要调试接口访问 (DIA) SDK。它是基于 COM 的,但它是处理 PDB 的最强大、最灵活的方式,并且它抽象了所有版本之间的 PDB 格式更改。它随 Visual Studio 一起提供,头文件和库可以在 VS 安装目录下找到。
MSDN 还有一个相当完整的转储 PDB 的示例,其中包括转储类型信息。
DIA 的替代方案是调试帮助 (DbgHelp)库。它具有更简单的界面,但公开的功能比 DIA 少。对于你想要的,我想你会使用
SymGetTypeInfo
方法。You want the Debug Interface Access (DIA) SDK. It's COM-based, but it's the most powerful and flexible way to deal with PDBs, and it abstracts away all of the version-to-version PDB format changes. It ships with Visual Studio, and the headers and libraries can be found under your VS installation directory.
MSDN also has a fairly complete example of dumping a PDB that includes dumping out type information.
The alternative to DIA is the Debug Help (DbgHelp) library. It has a simpler interface, but it exposes less functionality than DIA. For what you want, I imagine you'd use the
SymGetTypeInfo
method.