1 implementation of IPlatformAgnosticContext
Microsoft.Diagnostics.DataContractReader.Contracts (1)
Contracts\StackWalk\Context\ContextHolder.cs (1)
9public sealed class ContextHolder<T> : IPlatformAgnosticContext, IEquatable<ContextHolder<T>>
101 references to IPlatformAgnosticContext
Microsoft.Diagnostics.DataContractReader.Contracts (57)
Contracts\Debugger\Debugger_1.cs (4)
221IPlatformAgnosticContext ctx = IPlatformAgnosticContext.GetContextForPlatform(_target); 288public static void PlaceArgs(Target target, IPlatformAgnosticContext ctx, ref TargetPointer sp, ReadOnlySpan<TargetNUInt> args) 353private static void SetRegisterChecked(IPlatformAgnosticContext ctx, string register, TargetNUInt value, int pointerSize)
Contracts\StackWalk\Context\ContextHolder.cs (1)
52public IPlatformAgnosticContext Clone() => new ContextHolder<T>() { Context = Context };
Contracts\StackWalk\Context\IPlatformAgnosticContext.cs (2)
27public abstract IPlatformAgnosticContext Clone(); 42public static IPlatformAgnosticContext GetContextForPlatform(Target target)
Contracts\StackWalk\FrameHandling\BaseFrameHandler.cs (5)
13internal abstract class BaseFrameHandler(Target target, IPlatformAgnosticContext context) 17private readonly IPlatformAgnosticContext _context = context; 35IPlatformAgnosticContext otherContextHolder = IPlatformAgnosticContext.GetContextForPlatform(_target); 97protected void UpdateCalleeSavedRegistersFromOtherContext(IPlatformAgnosticContext otherContext)
Contracts\StackWalk\FrameHandling\FrameHelpers.cs (12)
142public void UpdateContextFromFrame(Data.Frame frame, IPlatformAgnosticContext context) 249IPlatformAgnosticContext ctx = IPlatformAgnosticContext.GetContextForPlatform(_target); 258IPlatformAgnosticContext ctx = IPlatformAgnosticContext.GetContextForPlatform(_target); 360private IPlatformFrameHandler GetFrameHandler(IPlatformAgnosticContext context) 460IPlatformAgnosticContext context, 490public void InterpreterVirtualUnwind(IPlatformAgnosticContext context) 505private bool VirtualUnwindInterpreterCallFrame(IPlatformAgnosticContext context) 524private void ApplyInterpreterFrameTransition(IPlatformAgnosticContext context, TargetPointer interpreterFrameAddress) 530private TargetPointer GetFirstArgRegister(IPlatformAgnosticContext context) 541private void SetFirstArgRegister(IPlatformAgnosticContext context, TargetPointer value)
Contracts\StackWalk\FrameHandling\FrameIterator.cs (1)
63public void UpdateContextFromCurrentFrame(IPlatformAgnosticContext context)
Contracts\StackWalk\GC\GcScanner.cs (3)
37IPlatformAgnosticContext context, 382private TargetPointer GetCallerSP(IPlatformAgnosticContext context, ref TargetPointer? cached) 386IPlatformAgnosticContext callerContext = context.Clone();
Contracts\StackWalk\StackWalk_1.cs (26)
33IPlatformAgnosticContext Context, 41private class StackWalkData(IPlatformAgnosticContext context, StackWalkState state, FrameIterator frameIter, ThreadData threadData) 43public IPlatformAgnosticContext Context { get; set; } = context; 128IPlatformAgnosticContext context = IPlatformAgnosticContext.GetContextForPlatform(_target); 137private void SetupContext(IPlatformAgnosticContext context, FrameIterator frameIterator, StackWalkState state, ref bool isFirst, out bool matchedIsInterrupted) 144IPlatformAgnosticContext tmpContext = context.Clone(); 164IPlatformAgnosticContext tmpContext = context.Clone(); 193IPlatformAgnosticContext context = IPlatformAgnosticContext.GetContextForPlatform(_target); 202IPlatformAgnosticContext context, 250IPlatformAgnosticContext context = IPlatformAgnosticContext.GetContextForPlatform(_target); 800IPlatformAgnosticContext callerContext = handle.Context.Clone(); 855IPlatformAgnosticContext recoveredContext = RetrieveHijackedContext(handle.Context, hijackKind == HijackKind.UnhandledException); 987IPlatformAgnosticContext parentContext = handle.Context.Clone(); 999private IPlatformAgnosticContext RetrieveHijackedContext(IPlatformAgnosticContext ctx, bool isUnhandledException) 1007IPlatformAgnosticContext recovered = IPlatformAgnosticContext.GetContextForPlatform(_target); 1012private TargetPointer ComputeRedirectStubSlot(IPlatformAgnosticContext context) 1137IPlatformAgnosticContext context = IPlatformAgnosticContext.GetContextForPlatform(_target); 1162IPlatformAgnosticContext context = IPlatformAgnosticContext.GetContextForPlatform(_target); 1218private void FillContextFromThread(IPlatformAgnosticContext context, ThreadData threadData, uint flags)
Contracts\StackWalk\StackWalk_1.ExceptionHandling.cs (3)
49IPlatformAgnosticContext callerContext = handle.Context.Clone(); 73IPlatformAgnosticContext callerCallerContext = callerContext.Clone(); 147IPlatformAgnosticContext callerContext = handle.Context.Clone();
Microsoft.Diagnostics.DataContractReader.Legacy (44)
ClrDataFrame.cs (11)
80IPlatformAgnosticContext contextStruct = IPlatformAgnosticContext.GetContextForPlatform(_target); 81IPlatformAgnosticContext localContextStruct = IPlatformAgnosticContext.GetContextForPlatform(_target); 842IPlatformAgnosticContext platformContext = IPlatformAgnosticContext.GetContextForPlatform(target); 858IPlatformAgnosticContext context, 902private static NativeVarLocation[] ResolveRegByRef(IPlatformAgnosticContext context, Target target, uint register, int pointerSize) 914private static NativeVarLocation[] ResolveStack(IPlatformAgnosticContext context, Target target, uint baseRegister, int offset, int pointerSize, bool deref) 923private static ulong ComputeStackAddress(IPlatformAgnosticContext context, Target target, uint baseRegister, int offset) 946private static ulong ReadRegister(IPlatformAgnosticContext context, Target target, uint registerNumber)
ClrDataStackWalk.cs (4)
95IPlatformAgnosticContext contextStruct = IPlatformAgnosticContext.GetContextForPlatform(_target); 96IPlatformAgnosticContext localContextStruct = IPlatformAgnosticContext.GetContextForPlatform(_target);
Dbi\DacDbiImpl.cs (27)
799IPlatformAgnosticContext ctx = IPlatformAgnosticContext.GetContextForPlatform(_target); 1090IPlatformAgnosticContext context = IPlatformAgnosticContext.GetContextForPlatform(_target); 1541uint contextSize = IPlatformAgnosticContext.GetContextForPlatform(_target).Size; 1563IPlatformAgnosticContext cdacCtx = IPlatformAgnosticContext.GetContextForPlatform(_target); 1564IPlatformAgnosticContext dacCtx = IPlatformAgnosticContext.GetContextForPlatform(_target); 1593IPlatformAgnosticContext ctx = IPlatformAgnosticContext.GetContextForPlatform(_target); 1610uint contextSize = IPlatformAgnosticContext.GetContextForPlatform(_target).Size; 1680uint contextSize = IPlatformAgnosticContext.GetContextForPlatform(_target).Size; 1697IPlatformAgnosticContext stripped = IPlatformAgnosticContext.GetContextForPlatform(_target); 1828IPlatformAgnosticContext ctx = IPlatformAgnosticContext.GetContextForPlatform(_target); 2090IPlatformAgnosticContext leafCtx = IPlatformAgnosticContext.GetContextForPlatform(_target); 2097IPlatformAgnosticContext givenCtx = IPlatformAgnosticContext.GetContextForPlatform(_target); 2126uint allFlags = IPlatformAgnosticContext.GetContextForPlatform(_target).AllContextFlags; 2139uint contextSize = IPlatformAgnosticContext.GetContextForPlatform(_target).Size; 2148IPlatformAgnosticContext contextStruct = IPlatformAgnosticContext.GetContextForPlatform(_target); 2149IPlatformAgnosticContext localContextStruct = IPlatformAgnosticContext.GetContextForPlatform(_target);
SOSDacImpl.cs (2)
2210IPlatformAgnosticContext context = IPlatformAgnosticContext.GetContextForPlatform(_target);