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