CorDebugMappingResult 枚举CorDebugMappingResult Enumeration

提供如何获取指令指针 (IP) 的值的详细信息。Provides the details of how the value of the instruction pointer (IP) was obtained.

语法Syntax

typedef enum CorDebugMappingResult {  
    MAPPING_PROLOG              = 0x1,  
    MAPPING_EPILOG              = 0x2,  
    MAPPING_NO_INFO             = 0x4,  
    MAPPING_UNMAPPED_ADDRESS    = 0x8,  
    MAPPING_EXACT               = 0x10,  
    MAPPING_APPROXIMATE         = 0x20,  
} CorDebugMappingResult;  

成员Members

成员Member 说明Description
MAPPING_PROLOG 本机代码在序言中,因此 IP 的值为0。The native code is in the prolog, so the value of the IP is 0.
MAPPING_EPILOG 本机代码在 epilog 中,因此 IP 的值是方法的最后一条指令的地址。The native code is in an epilog, so the value of the IP is the address of the last instruction of the method.
MAPPING_NO_INFO 此方法没有可用的映射信息,因此 IP 的值为0。No mapping information is available for the method, so the value of the IP is 0.
MAPPING_UNMAPPED_ADDRESS 尽管方法存在映射信息,但当前地址无法映射到 Microsoft 中间语言(MSIL)代码。Although there is mapping information for the method, the current address cannot be mapped to Microsoft intermediate language (MSIL) code. IP 的值为0。The value of the IP is 0.
MAPPING_EXACT 方法完全映射到 MSIL 代码或已解释帧,因此 IP 的值是准确的。Either the method maps exactly to MSIL code or the frame has been interpreted, so the value of the IP is accurate.
MAPPING_APPROXIMATE 已成功映射方法,但 IP 的值可能是近似的。The method was successfully mapped, but the value of the IP may be approximate.

备注Remarks

可以使用ICorDebugILFrame:: GetIP方法获取指令指针的值。You can use the ICorDebugILFrame::GetIP method to obtain the value of the instruction pointer.

要求Requirements

平台: 请参阅系统要求Platforms: See System Requirements.

标头:CorDebug.idl、CorDebug.hHeader: CorDebug.idl, CorDebug.h

库: CorGuids.libLibrary: CorGuids.lib

.NET Framework 版本:自 1.0 之后可用Available since 1.0.NET Framework Versions: 自 1.0 之后可用Available since 1.0

另请参阅See also