ICorDebugILFrame::GetIP Method

Gets the value of the instruction pointer and a bitwise combination value that describes how the value of the instruction pointer was obtained.

HRESULT GetIP (
    [out] ULONG32               *pnOffset, 
    [out] CorDebugMappingResult *pMappingResult
);

Parameters

  • pnOffset
    [out] The value of the instruction pointer.

  • pMappingResult
    [out] A pointer to a bitwise combination of the CorDebugMappingResult enumeration values that describe how the value of the instruction pointer was obtained.

Remarks

The value of the instruction pointer is the stack frame's offset into the function's Microsoft intermediate language (MSIL) code. If the stack frame is active, this address is the next instruction to execute. If the stack frame is not active, this address is the next instruction to execute when the stack frame is reactivated.

If this frame is a just-in-time (JIT) compiled frame, the value of the instruction pointer will be determined by mapping backwards from the actual native instruction pointer, so the value may be only approximate.

Requirements

Platforms: See .NET Framework System Requirements.

Header: CorDebug.idl

Library: CorGuids.lib

.NET Framework Versions: 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0, 1.1, 1.0

See Also

Reference

ICorDebugILFrame Interface