GetILToNativeMapping Method

ICorProfilerInfo::GetILToNativeMapping Method

Gets a map from Microsoft intermediate language (MSIL) offsets to native offsets for the code contained in the specified function.


HRESULT GetILToNativeMapping(
    [in] FunctionID functionId,
    [in] ULONG32 cMap,
    [out] ULONG32 *pcMap,
    [out, size_is(cMap), length_is(*pcMap)]
        COR_DEBUG_IL_TO_NATIVE_MAP map[]);

Parameters

Parameter Description

functionId

[in] The ID of the function containing the code.

cMap

[in] The maximum size of the map array.

pcMap

[out] The number of COR_DEBUG_IL_TO_NATIVE_MAP Structure structures returned in the map array.

map

[out] An array of COR_DEBUG_IL_TO_NATIVE_MAP Structure structures, each of which specifies the offsets.

The GetILToNativeMapping method returns an array of COR_DEBUG_IL_TO_NATIVE_MAP Structure structures. To convey that certain ranges of native instructions correspond to special regions of code (for example, the prolog), an entry in the array can have its ilOffset field set to a value of the CorDebugIlToNativeMappingTypes Enumeration enumeration.

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: CorProf.idl

Library: CorGuids.lib

.NET Framework Version: 2.0

Community Additions

ADD
Show:
© 2016 Microsoft