ICorDebugCode 接口
更新:2010 年 9 月
表示 Microsoft 中间语言 (MSIL) 代码段或本机代码段。
方法
方法 |
说明 |
---|---|
在指定的偏移量处创建断点。 |
|
获取此 ICorDebugCode 表示的代码段的相对虚拟地址 (RVA)。 |
|
获取指定函数中为反汇编而格式化的所有代码。 此方法已被弃用;转而使用 ICorDebugCode2::GetCodeChunks。 |
|
未实现。 |
|
获取与此 ICorDebugCode 关联的 ICorDebugFunction。 |
|
获取一个由 COR_DEBUG_IL_TO_NATIVE_MAP 实例构成的数组,这些实例表示从 MSIL 偏移量到本机偏移量的映射。 |
|
获取此 ICorDebugCode 表示的二进制代码的大小(以字节为单位)。 |
|
获取从 1 开始的编号,该编号标识此 ICorDebugCode 表示的代码的版本。 |
|
获取一个值,该值指示此 ICorDebugCode 是否是用 MSIL 编译的。 |
备注
ICorDebugCode 可以表示 MSIL 或本机代码。 一个 ICorDebugFunction 对象,表示 MSIL 代码可以关联零个或一个 ICorDebugCode 对象。 一个 ICorDebugFunction 对象,表示本机代码可以关联任意数目的 ICorDebugCode 对象。
注意 |
---|
不支持对此接口进行远程调用(无论是跨计算机还是跨进程)。 |
要求
**平台:**请参见 .NET Framework 系统要求。
头文件: CorDebug.idl、CorDebug.h
**库:**CorGuids.lib
**.NET Framework 版本:**4、3.5 SP1、3.5、3.0 SP1、3.0、2.0 SP1、2.0、1.1、1.0
请参见
参考
其他资源
修订记录
Date |
修订记录 |
原因 |
---|---|---|
2010 年 9 月 |
阐明了 ICorDebugCode 和 ICorDebugFunction 之间的关系。 |
内容 Bug 修复 |