1 implementation of InstructionPointer
Microsoft.Diagnostics.DataContractReader.Contracts (1)
Contracts\StackWalk\Context\ContextHolder.cs (1)
23public TargetCodePointer InstructionPointer { get => Context.InstructionPointer; set => Context.InstructionPointer = value; }
6 writes to InstructionPointer
Microsoft.Diagnostics.DataContractReader.Contracts (6)
Contracts\Debugger\Debugger_1.cs (1)
333ctx.InstructionPointer = new TargetCodePointer(pfnHijackFunction.Value);
Contracts\StackWalk\FrameHandling\BaseFrameHandler.cs (3)
28_context.InstructionPointer = CodePointerUtils.StripPointerAuthentiationFromReturnAddress(inlinedCallFrame.CallerReturnAddress, _target); 40_context.InstructionPointer = otherContextHolder.InstructionPointer; 49_context.InstructionPointer = CodePointerUtils.StripPointerAuthentiationFromReturnAddress(transitionBlock.ReturnAddress, _target);
Contracts\StackWalk\FrameHandling\FrameHelpers.cs (2)
747context.InstructionPointer = new TargetCodePointer((ulong)topContextFrame.Ip); 805context.InstructionPointer = new TargetCodePointer((ulong)parentFrame.Ip);
36 references to InstructionPointer
Microsoft.Diagnostics.DataContractReader.Contracts (30)
Contracts\StackWalk\FrameHandling\BaseFrameHandler.cs (1)
40_context.InstructionPointer = otherContextHolder.InstructionPointer;
Contracts\StackWalk\FrameHandling\FrameHelpers.cs (2)
476return ctx.InstructionPointer; 485return ctx.InstructionPointer;
Contracts\StackWalk\StackWalk_1.cs (23)
180StackWalkState state = IsManaged(context.InstructionPointer, out _) ? StackWalkState.Frameless : StackWalkState.InitialNativeContext; 189TargetCodePointer curPc = context.InstructionPointer; 251StackWalkState state = IsManaged(context.InstructionPointer, out _) ? StackWalkState.Frameless : StackWalkState.InitialNativeContext; 299if (state != StackWalkState.Frameless || !IsInterpreterCode(context.InstructionPointer)) 318StackWalkState state = IsManaged(context.InstructionPointer, out _) ? StackWalkState.Frameless : StackWalkState.InitialNativeContext; 345gcFrame.Frame.Context.InstructionPointer, 352if (!IsManaged(gcFrame.Frame.Context.InstructionPointer, out CodeBlockHandle? cbh)) 407Debug.WriteLine($"Skipping frame at IP=0x{gcFrame.Frame.Context.InstructionPointer:X}: {ex.Message}"); 414Debug.WriteLine($"Exception during WalkStackReferences at IP=0x{gcFrame.Frame.Context.InstructionPointer:X}: {ex.GetType().Name}: {ex.Message}"); 887if (IsInterpreterCode(handle.Context.InstructionPointer)) 912TargetCodePointer ip = handle.Context.InstructionPointer; 918handle.State = IsManaged(recoveredContext.InstructionPointer, out _) 970if (isActiveICF && !IsManaged(handle.Context.InstructionPointer, out _)) 1009bool isManaged = IsManaged(handle.Context.InstructionPointer, out _); 1063Debug.Assert(IsManaged(handle.Context.InstructionPointer, out _)); 1131return handle.Context.InstructionPointer; 1186if (IsInterpreterCode(context.InstructionPointer)) 1213if (!IsManaged(handle.Context.InstructionPointer, out CodeBlockHandle? cbh)) 1219IGCInfoHandle gcHandle = IsInterpreterCode(handle.Context.InstructionPointer) 1282if (IsManaged(handle.Context.InstructionPointer, out CodeBlockHandle? cbh)) 1292HijackKind hijackKind = _target.Contracts.Debugger.GetHijackKind(handle.Context.InstructionPointer); 1351if (!IsManaged(handle.Context.InstructionPointer, out CodeBlockHandle? codeBlockHandle)) 1426if (context.StackPointer.Value != 0 && context.InstructionPointer.Value != 0)
Contracts\StackWalk\StackWalk_1.ExceptionHandling.cs (4)
58TargetCodePointer callerIp = callerContext.InstructionPointer; 151if (IsManaged(cf.Context.InstructionPointer, out CodeBlockHandle? cbh)) 167if (!IsManaged(handle.Context.InstructionPointer, out CodeBlockHandle? cbh)) 181if (!IsManaged(handle.Context.InstructionPointer, out CodeBlockHandle? cbh))
Microsoft.Diagnostics.DataContractReader.Legacy (6)
Dbi\DacDbiImpl.cs (5)
1305if (!_target.Contracts.ExecutionManager.IsGcSafe(context.InstructionPointer)) 2631&& givenCtx.InstructionPointer == leafCtx.InstructionPointer 6734&& ctx1.InstructionPointer == ctx2.InstructionPointer
SOSDacImpl.cs (1)
2314TargetPointer pThunk = context.InstructionPointer.AsTargetPointer;