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