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