1 write to _target
Microsoft.Diagnostics.DataContractReader.Contracts (1)
Contracts\StackWalk\StackWalk_1.cs (1)
28
_target
= target;
63 references to _target
Microsoft.Diagnostics.DataContractReader.Contracts (63)
Contracts\StackWalk\StackWalk_1.cs (52)
177
IPlatformAgnosticContext context = IPlatformAgnosticContext.GetContextForPlatform(
_target
);
181
FrameIterator frameIterator = new(
_target
, threadData);
194
tmpContext.Unwind(
_target
);
197
bool isX86 =
_target
.Contracts.RuntimeInfo.GetTargetArchitecture() == RuntimeInfoArchitecture.X86;
248
IPlatformAgnosticContext context = IPlatformAgnosticContext.GetContextForPlatform(
_target
);
250
FrameIterator frameIterator = new(
_target
, threadData);
306
Data.Frame owning =
_target
.ProcessedData.GetOrAdd<Data.Frame>(owningFrame);
316
IPlatformAgnosticContext context = IPlatformAgnosticContext.GetContextForPlatform(
_target
);
319
FrameIterator frameIterator = new(
_target
, threadData);
332
GcScanContext scanContext = new(
_target
, resolveInteriorPointers);
374
IGCInfoHandle gcHandle =
_target
.Contracts.GCInfo.DecodePlatformSpecificGCInfo(gcInfoAddr, gcVersion);
377
foreach (var range in
_target
.Contracts.GCInfo.GetInterruptibleRanges(gcHandle))
451
Data.Thread thread =
_target
.ProcessedData.GetOrAdd<Data.Thread>(threadData.ThreadAddress);
452
TargetPointer pExInfo =
_target
.ReadPointer(thread.ExceptionTracker);
456
IException exceptionContract =
_target
.Contracts.Exception;
478
ulong pointerSize = (ulong)
_target
.PointerSize;
486
Data.GCFrame gcFrame =
_target
.ProcessedData.GetOrAdd<Data.GCFrame>(pGCFrame);
698
if (parentStackFrame == TargetPointer.PlatformMaxValue(
_target
) ||
749
if (parentStackFrame == TargetPointer.PlatformMaxValue(
_target
) ||
759
Data.ExceptionInfo exInfo =
_target
.ProcessedData.GetOrAdd<Data.ExceptionInfo>(pExInfo);
861
callerContext.Unwind(
_target
);
895
handle.Unwind(
_target
);
913
HijackKind hijackKind =
_target
.Contracts.Debugger.GetHijackKind(ip);
921
FrameIterator frameIterator = new(
_target
, handle.ThreadData);
1072
IPlatformAgnosticContext parentContext = handle.GetCallerContext(
_target
);
1089
TargetPointer contextAddress =
_target
.ReadPointer(slotAddress.Value);
1091
IPlatformAgnosticContext recovered = IPlatformAgnosticContext.GetContextForPlatform(
_target
);
1092
recovered.ReadFromAddress(
_target
, contextAddress);
1101
(bool useFramePointer, long offset) =
_target
.Contracts.RuntimeInfo.GetTargetArchitecture() switch
1137
RuntimeInfoArchitecture arch =
_target
.Contracts.RuntimeInfo.GetTargetArchitecture();
1190
callerContext.Unwind(
_target
);
1205
IRuntimeTypeSystem rts =
_target
.Contracts.RuntimeTypeSystem;
1218
IGCInfo gcInfo =
_target
.Contracts.GCInfo;
1233
?
_target
.Contracts.Object.GetMethodTableAddress(contextValue)
1262
=>
_target
.ReadPointer(new TargetPointer(unchecked(baseAddress.Value + (ulong)(long)offset)));
1273
uint pointerSize = (uint)
_target
.PointerSize;
1292
HijackKind hijackKind =
_target
.Contracts.Debugger.GetHijackKind(handle.Context.InstructionPointer);
1318
Data.Frame frameData =
_target
.ProcessedData.GetOrAdd<Data.Frame>(framePtr);
1324
IRuntimeTypeSystem rts =
_target
.Contracts.RuntimeTypeSystem;
1340
TargetPointer methodDescPtr = framePtr + Data.InlinedCallFrame.GetSize(
_target
);
1341
return
_target
.ReadPointer(methodDescPtr);
1359
ThreadData threadData =
_target
.Contracts.Thread.GetThreadData(threadPointer);
1360
FrameIterator iterator = new FrameIterator(
_target
, threadData);
1375
Data.FuncEvalFrame funcEvalFrame =
_target
.ProcessedData.GetOrAdd<Data.FuncEvalFrame>(funcEvalFrameAddress);
1376
Data.DebuggerEval debuggerEval =
_target
.ProcessedData.GetOrAdd<Data.DebuggerEval>(funcEvalFrame.DebuggerEvalPtr);
1382
IPlatformAgnosticContext context = IPlatformAgnosticContext.GetContextForPlatform(
_target
);
1393
_target
.ReadBuffer(filterContext.Value, buffer);
1397
bool success =
_target
.TryGetThreadContext(threadData.OSId.Value, contextFlags, buffer);
1407
IPlatformAgnosticContext context = IPlatformAgnosticContext.GetContextForPlatform(
_target
);
1409
FrameIterator iterator = new FrameIterator(
_target
, threadData);
1442
FrameIterator iterator = new FrameIterator(
_target
, threadData);
1445
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
)