1 write to _target
Microsoft.Diagnostics.DataContractReader.Contracts (1)
Contracts\StackWalk\StackWalk_1.cs (1)
26
_target
= target;
58 references to _target
Microsoft.Diagnostics.DataContractReader.Contracts (58)
Contracts\StackWalk\StackWalk_1.cs (48)
130
IPlatformAgnosticContext context = IPlatformAgnosticContext.GetContextForPlatform(
_target
);
134
FrameIterator frameIterator = new(
_target
, threadData);
147
tmpContext.Unwind(
_target
);
150
bool isX86 =
_target
.Contracts.RuntimeInfo.GetTargetArchitecture() == RuntimeInfoArchitecture.X86;
195
IPlatformAgnosticContext context = IPlatformAgnosticContext.GetContextForPlatform(
_target
);
197
FrameIterator frameIterator = new(
_target
, threadData);
252
IPlatformAgnosticContext context = IPlatformAgnosticContext.GetContextForPlatform(
_target
);
255
FrameIterator frameIterator = new(
_target
, threadData);
276
GcScanContext scanContext = new(
_target
, resolveInteriorPointers);
316
IGCInfoHandle gcHandle =
_target
.Contracts.GCInfo.DecodePlatformSpecificGCInfo(gcInfoAddr, gcVersion);
319
foreach (var range in
_target
.Contracts.GCInfo.GetInterruptibleRanges(gcHandle))
393
Data.Thread thread =
_target
.ProcessedData.GetOrAdd<Data.Thread>(threadData.ThreadAddress);
394
TargetPointer pExInfo =
_target
.ReadPointer(thread.ExceptionTracker);
398
IException exceptionContract =
_target
.Contracts.Exception;
420
ulong pointerSize = (ulong)
_target
.PointerSize;
428
Data.GCFrame gcFrame =
_target
.ProcessedData.GetOrAdd<Data.GCFrame>(pGCFrame);
640
if (parentStackFrame == TargetPointer.PlatformMaxValue(
_target
) ||
691
if (parentStackFrame == TargetPointer.PlatformMaxValue(
_target
) ||
701
Data.ExceptionInfo exInfo =
_target
.ProcessedData.GetOrAdd<Data.ExceptionInfo>(pExInfo);
803
callerContext.Unwind(
_target
);
825
if (
_target
.Contracts.ExecutionManager.GetCodeBlockHandle(preUnwindIp) is CodeBlockHandle cbh)
827
handle.LastFramelessStackParameterSize =
_target
.Contracts.ExecutionManager.GetStackParameterSize(cbh);
841
handle.Context.Unwind(
_target
);
859
HijackKind hijackKind =
_target
.Contracts.Debugger.GetHijackKind(ip);
867
FrameIterator frameIterator = new(
_target
, handle.ThreadData);
995
parentContext.Unwind(
_target
);
1006
&&
_target
.Contracts.RuntimeInfo.GetTargetArchitecture() == RuntimeInfoArchitecture.X86
1009
IPlatformAgnosticContext adjusted = IPlatformAgnosticContext.GetContextForPlatform(
_target
);
1025
TargetPointer contextAddress =
_target
.ReadPointer(slotAddress.Value);
1027
IPlatformAgnosticContext recovered = IPlatformAgnosticContext.GetContextForPlatform(
_target
);
1028
recovered.ReadFromAddress(
_target
, contextAddress);
1037
(bool useFramePointer, long offset) =
_target
.Contracts.RuntimeInfo.GetTargetArchitecture() switch
1091
Data.Frame frameData =
_target
.ProcessedData.GetOrAdd<Data.Frame>(framePtr);
1097
IRuntimeTypeSystem rts =
_target
.Contracts.RuntimeTypeSystem;
1099
Data.InlinedCallFrame icf =
_target
.ProcessedData.GetOrAdd<Data.InlinedCallFrame>(framePtr);
1114
TargetPointer methodDescPtr = framePtr +
_target
.GetTypeInfo(DataType.InlinedCallFrame).Size
1116
return
_target
.ReadPointer(methodDescPtr);
1134
ThreadData threadData =
_target
.Contracts.Thread.GetThreadData(threadPointer);
1135
FrameIterator iterator = new FrameIterator(
_target
, threadData);
1150
Data.FuncEvalFrame funcEvalFrame =
_target
.ProcessedData.GetOrAdd<Data.FuncEvalFrame>(funcEvalFrameAddress);
1151
Data.DebuggerEval debuggerEval =
_target
.ProcessedData.GetOrAdd<Data.DebuggerEval>(funcEvalFrame.DebuggerEvalPtr);
1157
IPlatformAgnosticContext context = IPlatformAgnosticContext.GetContextForPlatform(
_target
);
1168
_target
.ReadBuffer(filterContext.Value, buffer);
1172
bool success =
_target
.TryGetThreadContext(threadData.OSId.Value, contextFlags, buffer);
1182
IPlatformAgnosticContext context = IPlatformAgnosticContext.GetContextForPlatform(
_target
);
1184
FrameIterator iterator = new FrameIterator(
_target
, threadData);
1217
FrameIterator iterator = new FrameIterator(
_target
, threadData);
1220
Data.ResumableFrame rf =
_target
.ProcessedData.GetOrAdd<Data.ResumableFrame>(iterator.CurrentFrameAddress);
Contracts\StackWalk\StackWalk_1.ExceptionHandling.cs (10)
50
callerContext.Unwind(
_target
);
68
return TargetPointer.PlatformMaxValue(
_target
);
74
callerCallerContext.Unwind(
_target
);
83
Data.ExceptionInfo exInfo =
_target
.ProcessedData.GetOrAdd<Data.ExceptionInfo>(pExInfo);
87
if (exInfo.StackLowBound == TargetPointer.PlatformMaxValue(
_target
) &&
134
Data.Thread thread =
_target
.ProcessedData.GetOrAdd<Data.Thread>(handle.ThreadData.ThreadAddress);
137
return
_target
.ReadPointer(thread.ExceptionTracker);
148
callerContext.Unwind(
_target
);
159
Data.ExceptionInfo exceptionInfo =
_target
.ProcessedData.GetOrAdd<Data.ExceptionInfo>(pExInfo);
175
if (exceptionInfo.StackLowBound == TargetPointer.PlatformMaxValue(
_target
)