如何通过PDB文件获取结构信息? [英] How to get structure info via PDB file?

查看:523
本文介绍了如何通过PDB文件获取结构信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以通过符号文件获取未导出的函数地址,但是如何通过符号文件获取结构信息?

我想打印像WINDBG这样的结构信息。

更简单地说,我想得到一个结构的成员偏移量。

Hi, I can get unexported function address via symbol file, but how to get structure info via symbol file?
I want to print structure info like WINDBG.
More simply, I want to get member offset of a structure.

-Mrutyunjaya

-Mrutyunjaya

推荐答案

Debug Interface Access API提供了从PDB文件中获取信息的例程。 这正是WinDbg获取此信息的方式:

The Debug Interface Access API provides routines to get information from PDB files.  This is exactly how WinDbg gets this information:

https://msdn.microsoft.com/en-us/library/x93ctkx8.aspx

https://msdn.microsoft.com/en-us/library/x93ctkx8.aspx

这篇关于如何通过PDB文件获取结构信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆