1 implementation of IPlatformAgnosticContext
Microsoft.Diagnostics.DataContractReader.Contracts (1)
Contracts\StackWalk\Context\ContextHolder.cs (1)
9public sealed class ContextHolder<T> : IPlatformAgnosticContext, IEquatable<ContextHolder<T>>
126 references to IPlatformAgnosticContext
Microsoft.Diagnostics.DataContractReader.Contracts (73)
Contracts\Debugger\Debugger_1.cs (4)
276IPlatformAgnosticContext ctx = IPlatformAgnosticContext.GetContextForPlatform(_target); 343public static void PlaceArgs(Target target, IPlatformAgnosticContext ctx, ref TargetPointer sp, ReadOnlySpan<TargetNUInt> args) 408private static void SetRegisterChecked(IPlatformAgnosticContext ctx, string register, TargetNUInt value, int pointerSize)
Contracts\StackWalk\Context\ContextHolder.cs (2)
48public IPlatformAgnosticContext Clone() => new ContextHolder<T>() { Context = Context }; 60public void CopyContext(IPlatformAgnosticContext source)
Contracts\StackWalk\Context\IPlatformAgnosticContext.cs (3)
28public abstract IPlatformAgnosticContext Clone(); 35public abstract void CopyContext(IPlatformAgnosticContext source); 46public 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); 94protected void UpdateCalleeSavedRegistersFromOtherContext(IPlatformAgnosticContext otherContext)
Contracts\StackWalk\FrameHandling\FrameHelpers.cs (13)
334public void UpdateContextFromFrame(Data.Frame frame, IPlatformAgnosticContext context) 474IPlatformAgnosticContext ctx = IPlatformAgnosticContext.GetContextForPlatform(_target); 483IPlatformAgnosticContext ctx = IPlatformAgnosticContext.GetContextForPlatform(_target); 588private IPlatformFrameHandler GetFrameHandler(IPlatformAgnosticContext context) 739IPlatformAgnosticContext context, 769public void InterpreterVirtualUnwind(IPlatformAgnosticContext context) 787public TargetPointer InterpreterCallerStackPointer(IPlatformAgnosticContext context) 793private bool VirtualUnwindInterpreterCallFrame(IPlatformAgnosticContext context) 812private void ApplyInterpreterFrameTransition(IPlatformAgnosticContext context, TargetPointer interpreterFrameAddress) 822public TargetPointer GetFirstArgRegister(IPlatformAgnosticContext context) 833private void SetFirstArgRegister(IPlatformAgnosticContext context, TargetPointer value)
Contracts\StackWalk\FrameHandling\FrameIterator.cs (1)
76public void UpdateContextFromCurrentFrame(IPlatformAgnosticContext context)
Contracts\StackWalk\GC\GcScanner.cs (3)
37IPlatformAgnosticContext context, 322private TargetPointer GetCallerSP(IPlatformAgnosticContext context, ref TargetPointer? cached) 326IPlatformAgnosticContext callerContext = context.Clone();
Contracts\StackWalk\StackWalk_1.cs (39)
36IPlatformAgnosticContext Context, 47private class StackWalkData(IPlatformAgnosticContext context, StackWalkState state, FrameIterator frameIter, ThreadData threadData) 49private IPlatformAgnosticContext _context = context; 50private IPlatformAgnosticContext? _callerContext; 52public IPlatformAgnosticContext Context 86public IPlatformAgnosticContext GetCallerContext(Target target) 90IPlatformAgnosticContext context = Context.Clone(); 100if (_callerContext is IPlatformAgnosticContext callerContext) 106public IPlatformAgnosticContext GetContextForUpdate() 177IPlatformAgnosticContext context = IPlatformAgnosticContext.GetContextForPlatform(_target); 186private void SetupContext(IPlatformAgnosticContext context, FrameIterator frameIterator, StackWalkState state, ref bool isFirst, out bool matchedIsInterrupted, out bool matchedHasFaulted) 193IPlatformAgnosticContext tmpContext = context.Clone(); 213IPlatformAgnosticContext tmpContext = context.Clone(); 243internal static bool HasFaultedContext(IPlatformAgnosticContext context) 248IPlatformAgnosticContext context = IPlatformAgnosticContext.GetContextForPlatform(_target); 257IPlatformAgnosticContext context, 297private void SkipOwningInterpreterFrame(IPlatformAgnosticContext context, StackWalkState state, FrameIterator frameIterator) 316IPlatformAgnosticContext context = IPlatformAgnosticContext.GetContextForPlatform(_target); 860IPlatformAgnosticContext callerContext = handle.Context.Clone(); 916IPlatformAgnosticContext recoveredContext = RetrieveHijackedContext(handle.Context, hijackKind == HijackKind.UnhandledException); 1072IPlatformAgnosticContext parentContext = handle.GetCallerContext(_target); 1083private IPlatformAgnosticContext RetrieveHijackedContext(IPlatformAgnosticContext ctx, bool isUnhandledException) 1091IPlatformAgnosticContext recovered = IPlatformAgnosticContext.GetContextForPlatform(_target); 1096private TargetPointer ComputeRedirectStubSlot(IPlatformAgnosticContext context) 1184internal TargetPointer CallerStackPointer(IPlatformAgnosticContext context) 1189IPlatformAgnosticContext callerContext = context.Clone(); 1237private TargetPointer ReadGenericContextStorage(IPlatformAgnosticContext context, GenericContextStorage storage) 1264static bool TryReadRegister(IPlatformAgnosticContext context, GenericContextStorage storage, out TargetNUInt value) 1293IPlatformAgnosticContext hijacked = RetrieveHijackedContext(handle.Context, hijackKind == HijackKind.UnhandledException); 1382IPlatformAgnosticContext context = IPlatformAgnosticContext.GetContextForPlatform(_target); 1407IPlatformAgnosticContext context = IPlatformAgnosticContext.GetContextForPlatform(_target); 1463private void FillContextFromThread(IPlatformAgnosticContext context, ThreadData threadData, uint flags)
Contracts\StackWalk\StackWalk_1.ExceptionHandling.cs (3)
49IPlatformAgnosticContext callerContext = handle.Context.Clone(); 73IPlatformAgnosticContext callerCallerContext = callerContext.Clone(); 202IPlatformAgnosticContext callerContext = handle.Context.Clone();
Microsoft.Diagnostics.DataContractReader.Legacy (53)
ClrDataFrame.cs (8)
932IPlatformAgnosticContext platformContext = IPlatformAgnosticContext.GetContextForPlatform(target); 948IPlatformAgnosticContext context, 1004IPlatformAgnosticContext context, 1048private static NativeVarLocation[] ResolveRegByRef(IPlatformAgnosticContext context, Target target, uint register, int pointerSize) 1060private static NativeVarLocation[] ResolveStack(IPlatformAgnosticContext context, Target target, uint baseRegister, int offset, int pointerSize, bool deref) 1069private static ulong ComputeStackAddress(IPlatformAgnosticContext context, Target target, uint baseRegister, int offset) 1092private static ulong ReadRegister(IPlatformAgnosticContext context, Target target, uint registerNumber)
ClrDataStackWalk.cs (1)
339uint platformContextSize = IPlatformAgnosticContext.GetContextForPlatform(_target).Size;
Dbi\DacDbiImpl.cs (42)
1003IPlatformAgnosticContext ctx = IPlatformAgnosticContext.GetContextForPlatform(_target); 1302IPlatformAgnosticContext context = IPlatformAgnosticContext.GetContextForPlatform(_target); 1768uint expectedContextSize = IPlatformAgnosticContext.GetContextForPlatform(_target).Size; 1819uint expectedContextSize = IPlatformAgnosticContext.GetContextForPlatform(_target).Size; 1827IPlatformAgnosticContext ctx = IPlatformAgnosticContext.GetContextForPlatform(_target); 1916uint expectedContextSize = IPlatformAgnosticContext.GetContextForPlatform(_target).Size; 1974if (contextBuffer.contextSize < IPlatformAgnosticContext.GetContextForPlatform(_target).Size) 2060uint expectedContextSize = IPlatformAgnosticContext.GetContextForPlatform(_target).Size; 2067IPlatformAgnosticContext ctx = IPlatformAgnosticContext.GetContextForPlatform(_target); 2237IPlatformAgnosticContext stripped = IPlatformAgnosticContext.GetContextForPlatform(_target); 2613uint expectedContextSize = IPlatformAgnosticContext.GetContextForPlatform(_target).Size; 2620IPlatformAgnosticContext leafCtx = IPlatformAgnosticContext.GetContextForPlatform(_target); 2627IPlatformAgnosticContext givenCtx = IPlatformAgnosticContext.GetContextForPlatform(_target); 2657uint expectedContextSize = IPlatformAgnosticContext.GetContextForPlatform(_target).Size; 2664uint allFlags = IPlatformAgnosticContext.GetContextForPlatform(_target).AllContextFlags; 6627*pFlags = IPlatformAgnosticContext.GetContextForPlatform(_target).FullContextFlags; 6655IPlatformAgnosticContext ctx = IPlatformAgnosticContext.GetContextForPlatform(_target); 6688IPlatformAgnosticContext ctx = IPlatformAgnosticContext.GetContextForPlatform(_target); 6725IPlatformAgnosticContext ctx1 = IPlatformAgnosticContext.GetContextForPlatform(_target); 6726IPlatformAgnosticContext ctx2 = IPlatformAgnosticContext.GetContextForPlatform(_target); 6774IPlatformAgnosticContext srcCtx = IPlatformAgnosticContext.GetContextForPlatform(_target); 6776IPlatformAgnosticContext dstCtx = IPlatformAgnosticContext.GetContextForPlatform(_target); 6829IPlatformAgnosticContext ctx = IPlatformAgnosticContext.GetContextForPlatform(_target); 6887IPlatformAgnosticContext ctx = IPlatformAgnosticContext.GetContextForPlatform(_target); 6937private static bool TryReadFloatRegister(IPlatformAgnosticContext ctx, 7063IPlatformAgnosticContext ctx = IPlatformAgnosticContext.GetContextForPlatform(_target);
SOSDacImpl.cs (2)
2310IPlatformAgnosticContext context = IPlatformAgnosticContext.GetContextForPlatform(_target);