1 write to _target
Microsoft.Diagnostics.DataContractReader.Contracts (1)
Contracts\StackWalk\StackWalk_1.cs (1)
28
_target
= target;
64 references to _target
Microsoft.Diagnostics.DataContractReader.Contracts (64)
Contracts\StackWalk\StackWalk_1.cs (53)
139
IPlatformAgnosticContext context = IPlatformAgnosticContext.GetContextForPlatform(
_target
);
143
FrameIterator frameIterator = new(
_target
, threadData);
156
tmpContext.Unwind(
_target
);
159
bool isX86 =
_target
.Contracts.RuntimeInfo.GetTargetArchitecture() == RuntimeInfoArchitecture.X86;
210
IPlatformAgnosticContext context = IPlatformAgnosticContext.GetContextForPlatform(
_target
);
212
FrameIterator frameIterator = new(
_target
, threadData);
268
Data.Frame owning =
_target
.ProcessedData.GetOrAdd<Data.Frame>(owningFrame);
278
IPlatformAgnosticContext context = IPlatformAgnosticContext.GetContextForPlatform(
_target
);
281
FrameIterator frameIterator = new(
_target
, threadData);
294
GcScanContext scanContext = new(
_target
, resolveInteriorPointers);
334
IGCInfoHandle gcHandle =
_target
.Contracts.GCInfo.DecodePlatformSpecificGCInfo(gcInfoAddr, gcVersion);
337
foreach (var range in
_target
.Contracts.GCInfo.GetInterruptibleRanges(gcHandle))
411
Data.Thread thread =
_target
.ProcessedData.GetOrAdd<Data.Thread>(threadData.ThreadAddress);
412
TargetPointer pExInfo =
_target
.ReadPointer(thread.ExceptionTracker);
416
IException exceptionContract =
_target
.Contracts.Exception;
438
ulong pointerSize = (ulong)
_target
.PointerSize;
446
Data.GCFrame gcFrame =
_target
.ProcessedData.GetOrAdd<Data.GCFrame>(pGCFrame);
658
if (parentStackFrame == TargetPointer.PlatformMaxValue(
_target
) ||
709
if (parentStackFrame == TargetPointer.PlatformMaxValue(
_target
) ||
719
Data.ExceptionInfo exInfo =
_target
.ProcessedData.GetOrAdd<Data.ExceptionInfo>(pExInfo);
821
callerContext.Unwind(
_target
);
855
handle.Context.Unwind(
_target
);
873
HijackKind hijackKind =
_target
.Contracts.Debugger.GetHijackKind(ip);
881
FrameIterator frameIterator = new(
_target
, handle.ThreadData);
1033
parentContext.Unwind(
_target
);
1050
TargetPointer contextAddress =
_target
.ReadPointer(slotAddress.Value);
1052
IPlatformAgnosticContext recovered = IPlatformAgnosticContext.GetContextForPlatform(
_target
);
1053
recovered.ReadFromAddress(
_target
, contextAddress);
1062
(bool useFramePointer, long offset) =
_target
.Contracts.RuntimeInfo.GetTargetArchitecture() switch
1098
RuntimeInfoArchitecture arch =
_target
.Contracts.RuntimeInfo.GetTargetArchitecture();
1151
callerContext.Unwind(
_target
);
1166
IRuntimeTypeSystem rts =
_target
.Contracts.RuntimeTypeSystem;
1179
IGCInfo gcInfo =
_target
.Contracts.GCInfo;
1194
?
_target
.Contracts.Object.GetMethodTableAddress(contextValue)
1223
=>
_target
.ReadPointer(new TargetPointer(unchecked(baseAddress.Value + (ulong)(long)offset)));
1234
uint pointerSize = (uint)
_target
.PointerSize;
1253
HijackKind hijackKind =
_target
.Contracts.Debugger.GetHijackKind(handle.Context.InstructionPointer);
1279
Data.Frame frameData =
_target
.ProcessedData.GetOrAdd<Data.Frame>(framePtr);
1285
IRuntimeTypeSystem rts =
_target
.Contracts.RuntimeTypeSystem;
1287
Data.InlinedCallFrame icf =
_target
.ProcessedData.GetOrAdd<Data.InlinedCallFrame>(framePtr);
1302
TargetPointer methodDescPtr = framePtr + Data.InlinedCallFrame.GetSize(
_target
);
1303
return
_target
.ReadPointer(methodDescPtr);
1321
ThreadData threadData =
_target
.Contracts.Thread.GetThreadData(threadPointer);
1322
FrameIterator iterator = new FrameIterator(
_target
, threadData);
1337
Data.FuncEvalFrame funcEvalFrame =
_target
.ProcessedData.GetOrAdd<Data.FuncEvalFrame>(funcEvalFrameAddress);
1338
Data.DebuggerEval debuggerEval =
_target
.ProcessedData.GetOrAdd<Data.DebuggerEval>(funcEvalFrame.DebuggerEvalPtr);
1344
IPlatformAgnosticContext context = IPlatformAgnosticContext.GetContextForPlatform(
_target
);
1355
_target
.ReadBuffer(filterContext.Value, buffer);
1359
bool success =
_target
.TryGetThreadContext(threadData.OSId.Value, contextFlags, buffer);
1369
IPlatformAgnosticContext context = IPlatformAgnosticContext.GetContextForPlatform(
_target
);
1371
FrameIterator iterator = new FrameIterator(
_target
, threadData);
1404
FrameIterator iterator = new FrameIterator(
_target
, threadData);
1407
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
)