1 write to _target
Microsoft.Diagnostics.DataContractReader.Contracts (1)
Contracts\StackWalk\StackWalk_1.cs (1)
26
_target
= target;
64 references to _target
Microsoft.Diagnostics.DataContractReader.Contracts (64)
Contracts\StackWalk\StackWalk_1.cs (53)
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);
265
Data.Frame owning =
_target
.ProcessedData.GetOrAdd<Data.Frame>(owningFrame);
275
IPlatformAgnosticContext context = IPlatformAgnosticContext.GetContextForPlatform(
_target
);
278
FrameIterator frameIterator = new(
_target
, threadData);
291
GcScanContext scanContext = new(
_target
, resolveInteriorPointers);
331
IGCInfoHandle gcHandle =
_target
.Contracts.GCInfo.DecodePlatformSpecificGCInfo(gcInfoAddr, gcVersion);
334
foreach (var range in
_target
.Contracts.GCInfo.GetInterruptibleRanges(gcHandle))
408
Data.Thread thread =
_target
.ProcessedData.GetOrAdd<Data.Thread>(threadData.ThreadAddress);
409
TargetPointer pExInfo =
_target
.ReadPointer(thread.ExceptionTracker);
413
IException exceptionContract =
_target
.Contracts.Exception;
435
ulong pointerSize = (ulong)
_target
.PointerSize;
443
Data.GCFrame gcFrame =
_target
.ProcessedData.GetOrAdd<Data.GCFrame>(pGCFrame);
655
if (parentStackFrame == TargetPointer.PlatformMaxValue(
_target
) ||
706
if (parentStackFrame == TargetPointer.PlatformMaxValue(
_target
) ||
716
Data.ExceptionInfo exInfo =
_target
.ProcessedData.GetOrAdd<Data.ExceptionInfo>(pExInfo);
818
callerContext.Unwind(
_target
);
852
handle.Context.Unwind(
_target
);
870
HijackKind hijackKind =
_target
.Contracts.Debugger.GetHijackKind(ip);
878
FrameIterator frameIterator = new(
_target
, handle.ThreadData);
1030
parentContext.Unwind(
_target
);
1047
TargetPointer contextAddress =
_target
.ReadPointer(slotAddress.Value);
1049
IPlatformAgnosticContext recovered = IPlatformAgnosticContext.GetContextForPlatform(
_target
);
1050
recovered.ReadFromAddress(
_target
, contextAddress);
1059
(bool useFramePointer, long offset) =
_target
.Contracts.RuntimeInfo.GetTargetArchitecture() switch
1095
RuntimeInfoArchitecture arch =
_target
.Contracts.RuntimeInfo.GetTargetArchitecture();
1140
callerContext.Unwind(
_target
);
1155
IRuntimeTypeSystem rts =
_target
.Contracts.RuntimeTypeSystem;
1168
IGCInfo gcInfo =
_target
.Contracts.GCInfo;
1183
?
_target
.Contracts.Object.GetMethodTableAddress(contextValue)
1212
=>
_target
.ReadPointer(new TargetPointer(unchecked(baseAddress.Value + (ulong)(long)offset)));
1223
uint pointerSize = (uint)
_target
.PointerSize;
1242
HijackKind hijackKind =
_target
.Contracts.Debugger.GetHijackKind(handle.Context.InstructionPointer);
1268
Data.Frame frameData =
_target
.ProcessedData.GetOrAdd<Data.Frame>(framePtr);
1274
IRuntimeTypeSystem rts =
_target
.Contracts.RuntimeTypeSystem;
1276
Data.InlinedCallFrame icf =
_target
.ProcessedData.GetOrAdd<Data.InlinedCallFrame>(framePtr);
1291
TargetPointer methodDescPtr = framePtr + Data.InlinedCallFrame.GetSize(
_target
);
1292
return
_target
.ReadPointer(methodDescPtr);
1310
ThreadData threadData =
_target
.Contracts.Thread.GetThreadData(threadPointer);
1311
FrameIterator iterator = new FrameIterator(
_target
, threadData);
1326
Data.FuncEvalFrame funcEvalFrame =
_target
.ProcessedData.GetOrAdd<Data.FuncEvalFrame>(funcEvalFrameAddress);
1327
Data.DebuggerEval debuggerEval =
_target
.ProcessedData.GetOrAdd<Data.DebuggerEval>(funcEvalFrame.DebuggerEvalPtr);
1333
IPlatformAgnosticContext context = IPlatformAgnosticContext.GetContextForPlatform(
_target
);
1344
_target
.ReadBuffer(filterContext.Value, buffer);
1348
bool success =
_target
.TryGetThreadContext(threadData.OSId.Value, contextFlags, buffer);
1358
IPlatformAgnosticContext context = IPlatformAgnosticContext.GetContextForPlatform(
_target
);
1360
FrameIterator iterator = new FrameIterator(
_target
, threadData);
1393
FrameIterator iterator = new FrameIterator(
_target
, threadData);
1396
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
)