技术用于通过变量迭代和寻找特定类型的实例 [英] Technique for iterating through variables and finding Instances of a specific Type

查看:102
本文介绍了技术用于通过变量迭代和寻找特定类型的实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过我的进程在内存变量(通过插件加载动态)进行迭代,并寻找一个特定类型的实例。

i want to iterate through variables in memory in my process (loaded through a plugin dynamically), and look for instances of a specific type.

以前我能找到特定类型(或所有类型的存储器)。我可以创建类型的情况下,我能得到的载如在不同类型的字段的情况下,但我不知道反正只是为了搜索为特定类型的实例。

Previously i can find the specific types (or all types in memory). I can create instances of types, i could get instances that were contained as fields in a different type, but i don't know anyway just to "search" for instances of a specific type.

推荐答案

一种方法是使用WinDbg和SOS。你可以!dumpheap用型标志。

One way would be to use windbg and sos. You can !dumpheap with a -type flag.

这篇关于技术用于通过变量迭代和寻找特定类型的实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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