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