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