1 implementation of IPlatformAgnosticContext
Microsoft.Diagnostics.DataContractReader.Contracts (1)
Contracts\StackWalk\Context\ContextHolder.cs (1)
9public sealed class ContextHolder<T> : IPlatformAgnosticContext, IEquatable<ContextHolder<T>>
95 references to IPlatformAgnosticContext
Microsoft.Diagnostics.DataContractReader.Contracts (55)
Contracts\StackWalk\Context\ContextHolder.cs (1)
52public IPlatformAgnosticContext Clone() => new ContextHolder<T>() { Context = Context };
Contracts\StackWalk\Context\IPlatformAgnosticContext.cs (2)
27public abstract IPlatformAgnosticContext Clone(); 34public 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, 349private TargetPointer GetCallerSP(IPlatformAgnosticContext context, ref TargetPointer? cached) 353IPlatformAgnosticContext callerContext = context.Clone();
Contracts\StackWalk\StackWalk_1.cs (28)
33IPlatformAgnosticContext Context, 42private class StackWalkData(IPlatformAgnosticContext context, StackWalkState state, FrameIterator frameIter, ThreadData threadData) 44public IPlatformAgnosticContext Context { get; set; } = context; 130IPlatformAgnosticContext context = IPlatformAgnosticContext.GetContextForPlatform(_target); 139private void SetupContext(IPlatformAgnosticContext context, FrameIterator frameIterator, StackWalkState state, ref bool isFirst, out bool matchedIsInterrupted) 146IPlatformAgnosticContext tmpContext = context.Clone(); 166IPlatformAgnosticContext tmpContext = context.Clone(); 195IPlatformAgnosticContext context = IPlatformAgnosticContext.GetContextForPlatform(_target); 204IPlatformAgnosticContext context, 252IPlatformAgnosticContext context = IPlatformAgnosticContext.GetContextForPlatform(_target); 802IPlatformAgnosticContext callerContext = handle.Context.Clone(); 862IPlatformAgnosticContext recoveredContext = RetrieveHijackedContext(handle.Context, hijackKind == HijackKind.UnhandledException); 994IPlatformAgnosticContext parentContext = handle.Context.Clone(); 1009IPlatformAgnosticContext adjusted = IPlatformAgnosticContext.GetContextForPlatform(_target); 1019private IPlatformAgnosticContext RetrieveHijackedContext(IPlatformAgnosticContext ctx, bool isUnhandledException) 1027IPlatformAgnosticContext recovered = IPlatformAgnosticContext.GetContextForPlatform(_target); 1032private TargetPointer ComputeRedirectStubSlot(IPlatformAgnosticContext context) 1157IPlatformAgnosticContext context = IPlatformAgnosticContext.GetContextForPlatform(_target); 1182IPlatformAgnosticContext context = IPlatformAgnosticContext.GetContextForPlatform(_target); 1238private 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 (40)
ClrDataFrame.cs (11)
80IPlatformAgnosticContext contextStruct = IPlatformAgnosticContext.GetContextForPlatform(_target); 81IPlatformAgnosticContext localContextStruct = IPlatformAgnosticContext.GetContextForPlatform(_target); 843IPlatformAgnosticContext platformContext = IPlatformAgnosticContext.GetContextForPlatform(target); 859IPlatformAgnosticContext context, 903private static NativeVarLocation[] ResolveRegByRef(IPlatformAgnosticContext context, Target target, uint register, int pointerSize) 915private static NativeVarLocation[] ResolveStack(IPlatformAgnosticContext context, Target target, uint baseRegister, int offset, int pointerSize, bool deref) 924private static ulong ComputeStackAddress(IPlatformAgnosticContext context, Target target, uint baseRegister, int offset) 947private 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 (23)
1290uint contextSize = IPlatformAgnosticContext.GetContextForPlatform(_target).Size; 1312IPlatformAgnosticContext cdacCtx = IPlatformAgnosticContext.GetContextForPlatform(_target); 1313IPlatformAgnosticContext dacCtx = IPlatformAgnosticContext.GetContextForPlatform(_target); 1342IPlatformAgnosticContext ctx = IPlatformAgnosticContext.GetContextForPlatform(_target); 1359uint contextSize = IPlatformAgnosticContext.GetContextForPlatform(_target).Size; 1429uint contextSize = IPlatformAgnosticContext.GetContextForPlatform(_target).Size; 1449IPlatformAgnosticContext stripped = IPlatformAgnosticContext.GetContextForPlatform(_target); 1580IPlatformAgnosticContext ctx = IPlatformAgnosticContext.GetContextForPlatform(_target); 1853IPlatformAgnosticContext leafCtx = IPlatformAgnosticContext.GetContextForPlatform(_target); 1860IPlatformAgnosticContext givenCtx = IPlatformAgnosticContext.GetContextForPlatform(_target); 1889uint allFlags = IPlatformAgnosticContext.GetContextForPlatform(_target).AllContextFlags; 1902uint contextSize = IPlatformAgnosticContext.GetContextForPlatform(_target).Size; 1911IPlatformAgnosticContext contextStruct = IPlatformAgnosticContext.GetContextForPlatform(_target); 1912IPlatformAgnosticContext localContextStruct = IPlatformAgnosticContext.GetContextForPlatform(_target);
SOSDacImpl.cs (2)
2205IPlatformAgnosticContext context = IPlatformAgnosticContext.GetContextForPlatform(_target);