Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用windbg 转储结构,是否有类似于dumpobject 的dumpstruct 命令?或者 dumpobject 也可以转储结构?
是的,您可以使用该!dumpvc命令。 由于结构没有对象头,调试器不知道它的类型,所以你必须将结构的MethodTable地址传递给它。
!dumpvc
MethodTable
>!DumpVC <METHOD_TABLE_ADDRESS> <OBJECT_ADDRESS>