1 write to _target
Microsoft.Diagnostics.DataContractReader.Contracts (1)
Contracts\StackWalk\StackWalk_1.cs (1)
26
_target
= target;
63 references to _target
Microsoft.Diagnostics.DataContractReader.Contracts (63)
Contracts\StackWalk\StackWalk_1.cs (52)
136
IPlatformAgnosticContext context = IPlatformAgnosticContext.GetContextForPlatform(
_target
);
140
FrameIterator frameIterator = new(
_target
, threadData);
153
tmpContext.Unwind(
_target
);
156
bool isX86 =
_target
.Contracts.RuntimeInfo.GetTargetArchitecture() == RuntimeInfoArchitecture.X86;
207
IPlatformAgnosticContext context = IPlatformAgnosticContext.GetContextForPlatform(
_target
);
209
FrameIterator frameIterator = new(
_target
, threadData);
266
IPlatformAgnosticContext context = IPlatformAgnosticContext.GetContextForPlatform(
_target
);
269
FrameIterator frameIterator = new(
_target
, threadData);
290
GcScanContext scanContext = new(
_target
, resolveInteriorPointers);
330
IGCInfoHandle gcHandle =
_target
.Contracts.GCInfo.DecodePlatformSpecificGCInfo(gcInfoAddr, gcVersion);
333
foreach (var range in
_target
.Contracts.GCInfo.GetInterruptibleRanges(gcHandle))
407
Data.Thread thread =
_target
.ProcessedData.GetOrAdd<Data.Thread>(threadData.ThreadAddress);
408
TargetPointer pExInfo =
_target
.ReadPointer(thread.ExceptionTracker);
412
IException exceptionContract =
_target
.Contracts.Exception;
434
ulong pointerSize = (ulong)
_target
.PointerSize;
442
Data.GCFrame gcFrame =
_target
.ProcessedData.GetOrAdd<Data.GCFrame>(pGCFrame);
654
if (parentStackFrame == TargetPointer.PlatformMaxValue(
_target
) ||
705
if (parentStackFrame == TargetPointer.PlatformMaxValue(
_target
) ||
715
Data.ExceptionInfo exInfo =
_target
.ProcessedData.GetOrAdd<Data.ExceptionInfo>(pExInfo);
817
callerContext.Unwind(
_target
);
851
handle.Context.Unwind(
_target
);
869
HijackKind hijackKind =
_target
.Contracts.Debugger.GetHijackKind(ip);
877
FrameIterator frameIterator = new(
_target
, handle.ThreadData);
1009
parentContext.Unwind(
_target
);
1026
TargetPointer contextAddress =
_target
.ReadPointer(slotAddress.Value);
1028
IPlatformAgnosticContext recovered = IPlatformAgnosticContext.GetContextForPlatform(
_target
);
1029
recovered.ReadFromAddress(
_target
, contextAddress);
1038
(bool useFramePointer, long offset) =
_target
.Contracts.RuntimeInfo.GetTargetArchitecture() switch
1074
RuntimeInfoArchitecture arch =
_target
.Contracts.RuntimeInfo.GetTargetArchitecture();
1119
callerContext.Unwind(
_target
);
1134
IRuntimeTypeSystem rts =
_target
.Contracts.RuntimeTypeSystem;
1147
IGCInfo gcInfo =
_target
.Contracts.GCInfo;
1162
?
_target
.Contracts.Object.GetMethodTableAddress(contextValue)
1191
=>
_target
.ReadPointer(new TargetPointer(unchecked(baseAddress.Value + (ulong)(long)offset)));
1202
uint pointerSize = (uint)
_target
.PointerSize;
1221
HijackKind hijackKind =
_target
.Contracts.Debugger.GetHijackKind(handle.Context.InstructionPointer);
1247
Data.Frame frameData =
_target
.ProcessedData.GetOrAdd<Data.Frame>(framePtr);
1253
IRuntimeTypeSystem rts =
_target
.Contracts.RuntimeTypeSystem;
1255
Data.InlinedCallFrame icf =
_target
.ProcessedData.GetOrAdd<Data.InlinedCallFrame>(framePtr);
1270
TargetPointer methodDescPtr = framePtr + Data.InlinedCallFrame.GetSize(
_target
);
1271
return
_target
.ReadPointer(methodDescPtr);
1289
ThreadData threadData =
_target
.Contracts.Thread.GetThreadData(threadPointer);
1290
FrameIterator iterator = new FrameIterator(
_target
, threadData);
1305
Data.FuncEvalFrame funcEvalFrame =
_target
.ProcessedData.GetOrAdd<Data.FuncEvalFrame>(funcEvalFrameAddress);
1306
Data.DebuggerEval debuggerEval =
_target
.ProcessedData.GetOrAdd<Data.DebuggerEval>(funcEvalFrame.DebuggerEvalPtr);
1312
IPlatformAgnosticContext context = IPlatformAgnosticContext.GetContextForPlatform(
_target
);
1323
_target
.ReadBuffer(filterContext.Value, buffer);
1327
bool success =
_target
.TryGetThreadContext(threadData.OSId.Value, contextFlags, buffer);
1337
IPlatformAgnosticContext context = IPlatformAgnosticContext.GetContextForPlatform(
_target
);
1339
FrameIterator iterator = new FrameIterator(
_target
, threadData);
1372
FrameIterator iterator = new FrameIterator(
_target
, threadData);
1375
Data.ResumableFrame rf =
_target
.ProcessedData.GetOrAdd<Data.ResumableFrame>(iterator.CurrentFrameAddress);
Contracts\StackWalk\StackWalk_1.ExceptionHandling.cs (11)
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
) &&
133
(skipTo == TargetPointer.PlatformMaxValue(
_target
) || IsUnwoundToTargetParentFrame(cf, skipTo)))
189
Data.Thread thread =
_target
.ProcessedData.GetOrAdd<Data.Thread>(handle.ThreadData.ThreadAddress);
192
return
_target
.ReadPointer(thread.ExceptionTracker);
203
callerContext.Unwind(
_target
);
214
Data.ExceptionInfo exceptionInfo =
_target
.ProcessedData.GetOrAdd<Data.ExceptionInfo>(pExInfo);
230
if (exceptionInfo.StackLowBound == TargetPointer.PlatformMaxValue(
_target
)