1 write to _target
Microsoft.Diagnostics.DataContractReader.Legacy (1)
Dbi\DacDbiImpl.cs (1)
64_target = target;
181 references to _target
Microsoft.Diagnostics.DataContractReader.Legacy (181)
Dbi\DacDbiImpl.cs (181)
53if (!_target.TryReadGlobalPointer(Constants.Globals.ProfilerControlBlock, out TargetPointer? profControlBlockAddress)) 56Target.TypeInfo type = _target.GetTypeInfo(DataType.ProfControlBlock); 57TargetPointer mainProfInterface = _target.ReadPointerField(profControlBlockAddress.Value, type, "MainProfilerProfInterface"); 58int notificationCount = _target.ReadField<int>(profControlBlockAddress.Value, type, "NotificationProfilerCount"); 73_target.Flush(FlushScope.All); 86*pResult = _target.Contracts.Debugger.TryGetDebuggerData(out Contracts.DebuggerData data) && data.IsLeftSideInitialized ? Interop.BOOL.TRUE : Interop.BOOL.FALSE; 137string name = _target.Contracts.Loader.GetAppDomainFriendlyName(); 160Contracts.ILoader loader = _target.Contracts.Loader; 192Contracts.ILoader loader = _target.Contracts.Loader; 231Contracts.ILoader loader = _target.Contracts.Loader; 294Contracts.ILoader loader = _target.Contracts.Loader; 337Contracts.ILoader loader = _target.Contracts.Loader; 388Contracts.ILoader loader = _target.Contracts.Loader; 426IExecutionManager eman = _target.Contracts.ExecutionManager; 427if (_target.TryRead(address, out byte _) && eman.GetCodeBlockHandle(address) is not null) 458Contracts.ILoader loader = _target.Contracts.Loader; 494Contracts.ILoader loader = _target.Contracts.Loader; 554Contracts.ILoader loader = _target.Contracts.Loader; 602_target.Contracts.Debugger.RequestSyncAtEvent(); 623_target.Contracts.Debugger.SetSendExceptionsOutsideOfJMC(sendExceptionsOutsideOfJMC != Interop.BOOL.FALSE); 644Contracts.IDebugger debugger = _target.Contracts.Debugger; 675Contracts.IDebugger debugger = _target.Contracts.Debugger; 714Contracts.IThread threadContract = _target.Contracts.Thread; 769Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread)); 794Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread)); 820Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread)); 849Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(threadPtr); 850_target.Contracts.Thread.GetThreadAllocContext(threadPtr, out long allocBytes, out long allocBytesLoh); 886_target.Contracts.Thread.SetDebuggerControlledThreadState(threadPtr, Contracts.DebuggerControlledThreadState.UserSuspend); 890_target.Contracts.Thread.ResetDebuggerControlledThreadState(threadPtr, Contracts.DebuggerControlledThreadState.UserSuspend); 917Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread)); 947Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(threadPtr); 1025Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread)); 1054Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread)); 1081TargetPointer exceptionHandle = _target.Contracts.Thread.GetCurrentExceptionHandle(threadPtr); 1084ThreadData data = _target.Contracts.Thread.GetThreadData(threadPtr); 1117if (_target.Contracts.TryGetContract<IComWrappers>(out IComWrappers? comWrappers)) 1122comWrappersSuccess = _target.TryReadPointer(managedObjectWrapper, out objectHandle); 1126if (!comWrappersSuccess && _target.Contracts.TryGetContract<IBuiltInCOM>(out IBuiltInCOM? builtInCOM)) 1162Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread)); 1188TargetPointer defaultAppDomain = _target.Contracts.Loader.GetAppDomain(); 1214Contracts.ILoader loader = _target.Contracts.Loader; 1250Contracts.IThread threadContract = _target.Contracts.Thread; 1262IStackWalk sw = _target.Contracts.StackWalk; 1290uint contextSize = IPlatformAgnosticContext.GetContextForPlatform(_target).Size; 1312IPlatformAgnosticContext cdacCtx = IPlatformAgnosticContext.GetContextForPlatform(_target); 1313IPlatformAgnosticContext dacCtx = IPlatformAgnosticContext.GetContextForPlatform(_target); 1342IPlatformAgnosticContext ctx = IPlatformAgnosticContext.GetContextForPlatform(_target); 1344ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread)); 1345byte[] seedContext = _target.Contracts.StackWalk.GetContext(threadData, ThreadContextSource.Debugger, allFlags); 1348handleData = new StackWalkHandleData(_target.Contracts.StackWalk, threadData); 1359uint contextSize = IPlatformAgnosticContext.GetContextForPlatform(_target).Size; 1429uint contextSize = IPlatformAgnosticContext.GetContextForPlatform(_target).Size; 1439IStackWalk sw = _target.Contracts.StackWalk; 1446RuntimeInfoArchitecture arch = _target.Contracts.RuntimeInfo.GetTargetArchitecture(); 1449IPlatformAgnosticContext stripped = IPlatformAgnosticContext.GetContextForPlatform(_target); 1580IPlatformAgnosticContext ctx = IPlatformAgnosticContext.GetContextForPlatform(_target); 1585_target.Contracts.Thread.GetStackLimitData(new TargetPointer(vmThread), out TargetPointer stackBase, out TargetPointer stackLimit, out _); 1636IStackWalk stackwalk = _target.Contracts.StackWalk; 1670TargetPointer currentAppDomain = _target.Contracts.Loader.GetAppDomain(); 1671IStackWalk stackwalk = _target.Contracts.StackWalk; 1760IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 1772ILoader loader = _target.Contracts.Loader; 1800IExecutionManager eman = _target.Contracts.ExecutionManager; 1853IPlatformAgnosticContext leafCtx = IPlatformAgnosticContext.GetContextForPlatform(_target); 1855ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread)); 1856byte[] leafContext = _target.Contracts.StackWalk.GetContext(threadData, ThreadContextSource.None, allFlags); 1860IPlatformAgnosticContext givenCtx = IPlatformAgnosticContext.GetContextForPlatform(_target); 1889uint allFlags = IPlatformAgnosticContext.GetContextForPlatform(_target).AllContextFlags; 1890ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread)); 1891byte[] context = _target.Contracts.StackWalk.GetContext(threadData, ThreadContextSource.Debugger, allFlags); 1902uint contextSize = IPlatformAgnosticContext.GetContextForPlatform(_target).Size; 1911IPlatformAgnosticContext contextStruct = IPlatformAgnosticContext.GetContextForPlatform(_target); 1912IPlatformAgnosticContext localContextStruct = IPlatformAgnosticContext.GetContextForPlatform(_target); 1930Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 1965Contracts.ISignature signature = _target.Contracts.Signature; 1998RuntimeInfoArchitecture arch = _target.Contracts.RuntimeInfo.GetTargetArchitecture(); 2004Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 2050*pRetVal = _target.Contracts.Object.GetMethodTableAddress(new TargetPointer(rawToken)).Value; 2089ILoader loader = _target.Contracts.Loader; 2092MetadataReader mdReader = _target.Contracts.EcmaMetadata.GetMetadata(moduleHandle) 2105IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 2116int headerSize = HeaderReaderHelpers.GetHeaderSize(_target, headerPtr); 2117int codeSize = HeaderReaderHelpers.GetCodeSize(_target, headerPtr); 2119if (HeaderReaderHelpers.TryGetLocalVarSigToken(_target, headerPtr, out int localToken) && localToken != 0) 2162Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 2189Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 2227IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 2283IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 2333IRuntimeMutableTypeSystem? mts = _target.Contracts.TryGetContract<IRuntimeMutableTypeSystem>(out IRuntimeMutableTypeSystem enc) ? enc : null; 2491IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 2519IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 2520TargetPointer mtAddr = _target.Contracts.Object.GetMethodTableAddress(new TargetPointer(addr)); 2597Contracts.ILoader loader = _target.Contracts.Loader; 2640IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 2647TypeDataWalk walk = new TypeDataWalk(_target, rts, canonTh, pTypeData->m_pList, (uint)pTypeData->m_nEntries); 2679IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 2830IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 2969Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3002Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3028IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3029IRuntimeMutableTypeSystem mrts = _target.Contracts.RuntimeMutableTypeSystem; 3030Contracts.ILoader loader = _target.Contracts.Loader; 3129ILoader loader = _target.Contracts.Loader; 3130IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3162IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3239Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3283IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3285TargetPointer parentMT = _target.Contracts.Object.GetMethodTableAddress(objectAddress); 3342ulong vmAppDomain = _target.Contracts.Loader.GetAppDomain().Value; 3344IException exceptionContract = _target.Contracts.Exception; 3389IObject obj = _target.Contracts.Object; 3433IObject obj = _target.Contracts.Object; 3437IBuiltInCOM builtInCom = _target.Contracts.BuiltInCOM; 3480IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3518IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3519TargetPointer mtAddr = _target.Contracts.Object.GetMethodTableAddress(objectAddress); 3525_target.Contracts.Object.GetStringData(objectAddress, out uint length, out uint offset); 3556IObject objectContract = _target.Contracts.Object; 3557IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3620IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3625TargetPointer mt = _target.Contracts.Object.GetMethodTableAddress(objectAddress); 3636*pObjOffsetToVars = (uint)_target.GetTypeInfo(DataType.Object).Size!.Value; 3637*pObjSize = (uint)_target.Contracts.Object.GetSize(objectAddress); 3681*pRetVal = _target.Contracts.Debugger.GetDebuggerControlBlockAddress().Value; 3706*pRetVal = _target.ReadPointer(new TargetPointer(ptr)).Value; 3766TargetPointer obj = _target.ReadPointer(new TargetPointer(vmHandle)); 3812TargetPointer syncBlock = _target.Contracts.Object.GetSyncBlockAddress(vmObject); 3814if (syncBlock == TargetPointer.Null || !_target.Contracts.SyncBlock.TryGetLockInfo(syncBlock, out threadId, out recursionCount)) 3820TargetPointer threadPtr = _target.Contracts.Thread.IdToThread(threadId); 3860*pRetVal = _target.Contracts.Debugger.GetAttachStateFlags(); 3894Contracts.ILoader loader = _target.Contracts.Loader; 3959walk = new HeapWalk(_target); 4116IGC gc = _target.Contracts.GC; 4225IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 4226TargetPointer mt = _target.Contracts.Object.GetMethodTableAddress(new TargetPointer(obj)); 4276walk = new RefWalk(_target, walkStacks != Interop.BOOL.FALSE, handleWalkMask); 4421TargetPointer mt = _target.Contracts.Object.GetMethodTableAddress(new TargetPointer(obj)); 4490IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 4526uint firstFieldOffset = isReferenceType ? _target.GetTypeInfo(DataType.Object).Size!.Value : 0; 4530IEcmaMetadata ecmaMetadataContract = _target.Contracts.EcmaMetadata; 4531ISignature signature = _target.Contracts.Signature; 4546Contracts.ModuleHandle enclosingModuleHandle = _target.Contracts.Loader.GetModuleHandleFromModulePtr(enclosingModulePtr); 4641IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 4659pLayout->boxOffset = rts.IsCorElementTypeObjRef(componentType) ? 0u : (uint)_target.PointerSize; 4697IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 4699uint pointerSize = (uint)_target.PointerSize; 4724Target.TypeInfo objectHeaderTypeInfo = _target.GetTypeInfo(DataType.ObjectHeader); 4769Contracts.IGC gc = _target.Contracts.GC; 4772pHeapInfo->pointerSize = (uint)_target.PointerSize; 4822if (_target.Contracts.TryGetContract<IReJIT>(out IReJIT rejit)) 4824ILoader loader = _target.Contracts.Loader; 4831ICodeVersions codeVersions = _target.Contracts.CodeVersions; 4865if (!_target.Contracts.Debugger.TryGetDebuggerData(out Contracts.DebuggerData data)) 4894if (!_target.Contracts.Debugger.TryGetDebuggerData(out Contracts.DebuggerData data)) 4927if (!_target.Contracts.TryGetContract<IReJIT>(out IReJIT rejit)) 4930ILoader loader = _target.Contracts.Loader; 4941ICodeVersions codeVersions = _target.Contracts.CodeVersions; 4981ICodeVersions codeVersions = _target.Contracts.CodeVersions; 5018ICodeVersions codeVersions = _target.Contracts.CodeVersions; 5053if (_target.Contracts.TryGetContract<IReJIT>(out _)) 5055ICodeVersions codeVersions = _target.Contracts.CodeVersions; 5099_target.Contracts.Debugger.EnableGCNotificationEvents(fEnable != Interop.BOOL.FALSE); 5158DelegateInfo delegateInfo = _target.Contracts.Object.GetDelegateInfo(new TargetPointer(delegateObject)); 5167IExecutionManager eman = _target.Contracts.ExecutionManager; 5175IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 5182Contracts.ModuleHandle moduleHandle = _target.Contracts.Loader.GetModuleHandleFromModulePtr(modulePtr); 5183*ppFunctionAssembly = _target.Contracts.Loader.GetAssembly(moduleHandle).Value; 5216DelegateInfo delegateInfo = _target.Contracts.Object.GetDelegateInfo(new TargetPointer(delegateObject)); 5243TargetPointer mt = _target.Contracts.Object.GetMethodTableAddress(vmObject); 5244IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 5261Contracts.ILoader loader = _target.Contracts.Loader; 5292*pResult = _target.Contracts.Debugger.MetadataUpdatesApplied() ? Interop.BOOL.TRUE : Interop.BOOL.FALSE; 5326Contracts.ILoader loader = _target.Contracts.Loader; 5356ContinuationInfo info = _target.Contracts.Object.GetContinuationInfo(new TargetPointer(continuationAddress)); 5412Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 5420Contracts.ICodeVersions cv = _target.Contracts.CodeVersions; 5431IReadOnlyList<AsyncSuspensionInfo> suspensionPoints = _target.Contracts.DebugInfo.GetAsyncSuspensionPoints(pCode); 5493Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 5681Contracts.ILoader loader = _target.Contracts.Loader; 5737Contracts.ILoader loader = _target.Contracts.Loader;