5 writes to Context
Microsoft.Diagnostics.DataContractReader.Contracts (5)
Contracts\StackWalk\Context\ContextHolder.cs (5)
36Span<T> structSpan = new(ref Context); 47public ReadOnlySpan<byte> GetBytes() => MemoryMarshal.AsBytes(MemoryMarshal.CreateReadOnlySpan(ref Context, 1)); 48public IPlatformAgnosticContext Clone() => new ContextHolder<T>() { Context = Context }; 49public void Clear() => Context = default; 63Context.CopyContext(MemoryMarshal.AsBytes(MemoryMarshal.CreateReadOnlySpan(ref sourceHolder.Context, 1)));
76 references to Context
Microsoft.Diagnostics.DataContractReader.Contracts (76)
Contracts\StackWalk\Context\ContextHolder.cs (28)
14public uint Size => Context.Size; 15public uint GetSize() => Context.GetSize(); 16public uint ContextControlFlags => Context.ContextControlFlags; 17public uint FullContextFlags => Context.FullContextFlags; 18public uint AllContextFlags => Context.AllContextFlags; 20public int StackPointerRegister => Context.StackPointerRegister; 22public TargetPointer StackPointer { get => Context.StackPointer; set => Context.StackPointer = value; } 23public TargetCodePointer InstructionPointer { get => Context.InstructionPointer; set => Context.InstructionPointer = value; } 24public TargetPointer FramePointer { get => Context.FramePointer; set => Context.FramePointer = value; } 26public uint RawContextFlags { get => Context.RawContextFlags; set => Context.RawContextFlags = value; } 48public IPlatformAgnosticContext Clone() => new ContextHolder<T>() { Context = Context }; 50public void Unwind(Target target) => Context.Unwind(target); 51public void UnsetSingleStepFlag() => Context.UnsetSingleStepFlag(); 53public bool TrySetRegister(string fieldName, TargetNUInt value) => Context.TrySetRegister(fieldName, value); 54public bool TryReadRegister(string fieldName, out TargetNUInt value) => Context.TryReadRegister(fieldName, out value); 55public bool TrySetRegister(int number, TargetNUInt value) => Context.TrySetRegister(number, value); 56public bool TryReadRegister(int number, out TargetNUInt value) => Context.TryReadRegister(number, out value); 57public bool TryReadFloatingPointRegister(int index, out double value) => Context.TryReadFloatingPointRegister(index, out value); 58public bool TryWriteFloatingPointRegister(int index, double value) => Context.TryWriteFloatingPointRegister(index, value); 63Context.CopyContext(MemoryMarshal.AsBytes(MemoryMarshal.CreateReadOnlySpan(ref sourceHolder.Context, 1))); 73return Context.Equals(other.Context); 81public override int GetHashCode() => Context.GetHashCode(); 83public override string ToString() => Context.ToString() ?? string.Empty;
Contracts\StackWalk\FrameHandling\AMD64FrameHandler.cs (3)
23_holder.Context.Rcx = next.Address.Value; 27_holder.Context.Rdi = next.Address.Value; 59_holder.Context.ContextFlags &= ~(uint)(ContextFlagsValues.CONTEXT_XSTATE & ContextFlagsValues.CONTEXT_AREA_MASK);
Contracts\StackWalk\FrameHandling\ARM64FrameHandler.cs (2)
23_holder.Context.X0 = next.Address.Value; 49_holder.Context.ContextFlags &= ~(uint)(ContextFlagsValues.CONTEXT_XSTATE & ContextFlagsValues.CONTEXT_AREA_MASK);
Contracts\StackWalk\FrameHandling\ARMFrameHandler.cs (1)
45_holder.Context.R9 = (uint)spAfterProlog;
Contracts\StackWalk\FrameHandling\LoongArch64FrameHandler.cs (1)
37_holder.Context.ContextFlags &= ~CONTEXT_UNWOUND_TO_CALL;
Contracts\StackWalk\FrameHandling\RISCV64FrameHandler.cs (1)
37_holder.Context.ContextFlags &= ~CONTEXT_UNWOUND_TO_CALL;
Contracts\StackWalk\FrameHandling\WasmFrameHandler.cs (15)
48_holder.Context.StackPointer = inlinedCallFrame.CallSiteSP; 49_holder.Context.InstructionPointer = unwinder.GetVirtualIP(inlinedCallFrame.CallSiteSP); 51_holder.Context.FramePointer = unwinder.TryGetLogicalFramePointer(inlinedCallFrame.CallSiteSP, out TargetPointer framePointer) 68if (!_holder.Context.TrySetRegister(WasmContext.InterpreterWalkFramePointerRegister, new TargetNUInt(next.Address.Value))) 80_holder.Context.InstructionPointer = saved.Context.InstructionPointer; 81_holder.Context.StackPointer = saved.Context.StackPointer; 82_holder.Context.FramePointer = saved.Context.FramePointer; 94_holder.Context.InstructionPointer = instructionPointer; 97_holder.Context.StackPointer = stackPointer; 100_holder.Context.FramePointer = unwinder.TryGetLogicalFramePointer(stackPointer, out TargetPointer framePointer) 106_holder.Context.StackPointer = framedMethodFrame.TransitionBlockPtr + Data.TransitionBlock.GetSize(_target); 107_holder.Context.FramePointer = TargetPointer.Null;
Contracts\StackWalk\FrameHandling\X86FrameHandler.cs (25)
22_context.Context.Esp = (uint)frame.HijackArgsPtr + hijackArgsSize; 71_context.Context.Eip -= CallInstructionSize; 94_context.Context.Esp += cookie.SizeOfArgs; 105_context.Context.Esp += decoder.ReadStackPop() * (uint)_target.PointerSize; 135_context.Context.Eip = (uint)frame.ReturnAddress; 139_context.Context.Esp = (uint)(frame.Address + tailCallFrameSize); 151_context.Context.ContextFlags &= ~(uint)(ContextFlagsValues.CONTEXT_XSTATE & ContextFlagsValues.CONTEXT_AREA_MASK); 168_context.Context.Edi = evalContext.Context.Edi; 169_context.Context.Esi = evalContext.Context.Esi; 170_context.Context.Ebx = evalContext.Context.Ebx; 171_context.Context.Edx = evalContext.Context.Edx; 172_context.Context.Ecx = evalContext.Context.Ecx; 173_context.Context.Eax = evalContext.Context.Eax; 174_context.Context.Ebp = evalContext.Context.Ebp; 175_context.Context.Eip = evalContext.Context.Eip; 176_context.Context.Esp = evalContext.Context.Esp;