1 write to _target
Microsoft.Diagnostics.DataContractReader.Legacy (1)
Dbi\DacDbiImpl.cs (1)
64_target = target;
195 references to _target
Microsoft.Diagnostics.DataContractReader.Legacy (195)
Dbi\DacDbiImpl.cs (194)
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"); 70_target.Flush(FlushScope.All); 85*pResult = _target.Contracts.Debugger.TryGetDebuggerData(out Contracts.DebuggerData data) && data.IsLeftSideInitialized ? Interop.BOOL.TRUE : Interop.BOOL.FALSE; 136string name = _target.Contracts.Loader.GetAppDomainFriendlyName(); 159Contracts.ILoader loader = _target.Contracts.Loader; 191Contracts.ILoader loader = _target.Contracts.Loader; 231Contracts.ILoader loader = _target.Contracts.Loader; 246Contracts.IEcmaMetadata ecmaMetadata = _target.Contracts.EcmaMetadata; 253Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 307Contracts.ILoader loader = _target.Contracts.Loader; 370Contracts.ILoader loader = _target.Contracts.Loader; 413Contracts.ILoader loader = _target.Contracts.Loader; 464Contracts.ILoader loader = _target.Contracts.Loader; 502IExecutionManager eman = _target.Contracts.ExecutionManager; 503if (_target.TryRead(address, out byte _) && eman.GetCodeBlockHandle(address) is not null) 534Contracts.ILoader loader = _target.Contracts.Loader; 570Contracts.ILoader loader = _target.Contracts.Loader; 630Contracts.ILoader loader = _target.Contracts.Loader; 678_target.Contracts.Debugger.RequestSyncAtEvent(); 699_target.Contracts.Debugger.SetSendExceptionsOutsideOfJMC(sendExceptionsOutsideOfJMC != Interop.BOOL.FALSE); 720Contracts.IDebugger debugger = _target.Contracts.Debugger; 751Contracts.IDebugger debugger = _target.Contracts.Debugger; 799IPlatformAgnosticContext ctx = IPlatformAgnosticContext.GetContextForPlatform(_target); 801if (!_target.TryGetThreadContext(dwThreadId, ctx.AllContextFlags, contextBuffer)) 815int recordSize = ExceptionRecordFullSize(_target.PointerSize); 820TargetPointer espContext = _target.Contracts.Debugger.PrepareExceptionHijack( 831if (!_target.TrySetThreadContext(dwThreadId, contextBuffer)) 851Contracts.IThread threadContract = _target.Contracts.Thread; 906Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread)); 931Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread)); 957Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread)); 986Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(threadPtr); 987_target.Contracts.Thread.GetThreadAllocContext(threadPtr, out long allocBytes, out long allocBytesLoh); 1023_target.Contracts.Thread.SetDebuggerControlledThreadState(threadPtr, Contracts.DebuggerControlledThreadState.UserSuspend); 1027_target.Contracts.Thread.ResetDebuggerControlledThreadState(threadPtr, Contracts.DebuggerControlledThreadState.UserSuspend); 1054Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread)); 1088Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(threadPtr); 1090IPlatformAgnosticContext context = IPlatformAgnosticContext.GetContextForPlatform(_target); 1091byte[] contextBytes = _target.Contracts.StackWalk.GetContext(threadData, ThreadContextSource.Debugger, context.FullContextFlags); 1093if (!_target.Contracts.ExecutionManager.IsGcSafe(context.InstructionPointer)) 1122Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(threadPtr); 1200Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread)); 1229Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread)); 1256TargetPointer exceptionHandle = _target.Contracts.Thread.GetCurrentExceptionHandle(threadPtr); 1259ThreadData data = _target.Contracts.Thread.GetThreadData(threadPtr); 1292if (_target.Contracts.TryGetContract<IComWrappers>(out IComWrappers? comWrappers)) 1297comWrappersSuccess = _target.TryReadPointer(managedObjectWrapper, out objectHandle); 1301if (!comWrappersSuccess && _target.Contracts.TryGetContract<IBuiltInCOM>(out IBuiltInCOM? builtInCOM)) 1337Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread)); 1363TargetPointer defaultAppDomain = _target.Contracts.Loader.GetAppDomain(); 1389Contracts.ILoader loader = _target.Contracts.Loader; 1436Contracts.IDebugInfo debugInfo = _target.Contracts.DebugInfo; 1501Contracts.IThread threadContract = _target.Contracts.Thread; 1513IStackWalk sw = _target.Contracts.StackWalk; 1541uint contextSize = IPlatformAgnosticContext.GetContextForPlatform(_target).Size; 1563IPlatformAgnosticContext cdacCtx = IPlatformAgnosticContext.GetContextForPlatform(_target); 1564IPlatformAgnosticContext dacCtx = IPlatformAgnosticContext.GetContextForPlatform(_target); 1593IPlatformAgnosticContext ctx = IPlatformAgnosticContext.GetContextForPlatform(_target); 1595ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread)); 1596byte[] seedContext = _target.Contracts.StackWalk.GetContext(threadData, ThreadContextSource.Debugger, allFlags); 1599handleData = new StackWalkHandleData(_target.Contracts.StackWalk, threadData); 1610uint contextSize = IPlatformAgnosticContext.GetContextForPlatform(_target).Size; 1680uint contextSize = IPlatformAgnosticContext.GetContextForPlatform(_target).Size; 1690IStackWalk sw = _target.Contracts.StackWalk; 1694RuntimeInfoArchitecture arch = _target.Contracts.RuntimeInfo.GetTargetArchitecture(); 1697IPlatformAgnosticContext stripped = IPlatformAgnosticContext.GetContextForPlatform(_target); 1828IPlatformAgnosticContext ctx = IPlatformAgnosticContext.GetContextForPlatform(_target); 1833_target.Contracts.Thread.GetStackLimitData(new TargetPointer(vmThread), out TargetPointer stackBase, out TargetPointer stackLimit, out _); 1884IStackWalk stackwalk = _target.Contracts.StackWalk; 1918TargetPointer currentAppDomain = _target.Contracts.Loader.GetAppDomain(); 1919IStackWalk stackwalk = _target.Contracts.StackWalk; 2008IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 2020ILoader loader = _target.Contracts.Loader; 2048IExecutionManager eman = _target.Contracts.ExecutionManager; 2090IPlatformAgnosticContext leafCtx = IPlatformAgnosticContext.GetContextForPlatform(_target); 2092ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread)); 2093byte[] leafContext = _target.Contracts.StackWalk.GetContext(threadData, ThreadContextSource.None, allFlags); 2097IPlatformAgnosticContext givenCtx = IPlatformAgnosticContext.GetContextForPlatform(_target); 2126uint allFlags = IPlatformAgnosticContext.GetContextForPlatform(_target).AllContextFlags; 2127ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread)); 2128byte[] context = _target.Contracts.StackWalk.GetContext(threadData, ThreadContextSource.Debugger, allFlags); 2139uint contextSize = IPlatformAgnosticContext.GetContextForPlatform(_target).Size; 2148IPlatformAgnosticContext contextStruct = IPlatformAgnosticContext.GetContextForPlatform(_target); 2149IPlatformAgnosticContext localContextStruct = IPlatformAgnosticContext.GetContextForPlatform(_target); 2167Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 2202Contracts.ISignature signature = _target.Contracts.Signature; 2235RuntimeInfoArchitecture arch = _target.Contracts.RuntimeInfo.GetTargetArchitecture(); 2241Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 2287*pRetVal = _target.Contracts.Object.GetMethodTableAddress(new TargetPointer(rawToken)).Value; 2326ILoader loader = _target.Contracts.Loader; 2329MetadataReader mdReader = _target.Contracts.EcmaMetadata.GetMetadata(moduleHandle) 2342IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 2353int headerSize = HeaderReaderHelpers.GetHeaderSize(_target, headerPtr); 2354int codeSize = HeaderReaderHelpers.GetCodeSize(_target, headerPtr); 2356if (HeaderReaderHelpers.TryGetLocalVarSigToken(_target, headerPtr, out int localToken) && localToken != 0) 2399Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 2426Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 2464IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 2520IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 2570IRuntimeMutableTypeSystem? mts = _target.Contracts.TryGetContract<IRuntimeMutableTypeSystem>(out IRuntimeMutableTypeSystem enc) ? enc : null; 2728IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 2756IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 2757TargetPointer mtAddr = _target.Contracts.Object.GetMethodTableAddress(new TargetPointer(addr)); 2834Contracts.ILoader loader = _target.Contracts.Loader; 2877IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 2884TypeDataWalk walk = new TypeDataWalk(_target, rts, canonTh, pTypeData->m_pList, (uint)pTypeData->m_nEntries); 2916IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3067IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3206Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3239Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3265IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3266IRuntimeMutableTypeSystem mrts = _target.Contracts.RuntimeMutableTypeSystem; 3267Contracts.ILoader loader = _target.Contracts.Loader; 3366ILoader loader = _target.Contracts.Loader; 3367IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3399IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3476Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3520IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3522TargetPointer parentMT = _target.Contracts.Object.GetMethodTableAddress(objectAddress); 3579ulong vmAppDomain = _target.Contracts.Loader.GetAppDomain().Value; 3581IException exceptionContract = _target.Contracts.Exception; 3626IObject obj = _target.Contracts.Object; 3670IObject obj = _target.Contracts.Object; 3674IBuiltInCOM builtInCom = _target.Contracts.BuiltInCOM; 3717IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3755IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3756TargetPointer mtAddr = _target.Contracts.Object.GetMethodTableAddress(objectAddress); 3762_target.Contracts.Object.GetStringData(objectAddress, out uint length, out uint offset); 3793IObject objectContract = _target.Contracts.Object; 3794IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3857IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3862TargetPointer mt = _target.Contracts.Object.GetMethodTableAddress(objectAddress); 3873*pObjOffsetToVars = (uint)_target.GetTypeInfo(DataType.Object).Size!.Value; 3874*pObjSize = (uint)_target.Contracts.Object.GetSize(objectAddress); 3918*pRetVal = _target.Contracts.Debugger.GetDebuggerControlBlockAddress().Value; 3943*pRetVal = _target.ReadPointer(new TargetPointer(ptr)).Value; 4003TargetPointer obj = _target.ReadPointer(new TargetPointer(vmHandle)); 4049TargetPointer syncBlock = _target.Contracts.Object.GetSyncBlockAddress(vmObject); 4051if (syncBlock == TargetPointer.Null || !_target.Contracts.SyncBlock.TryGetLockInfo(syncBlock, out threadId, out recursionCount)) 4057TargetPointer threadPtr = _target.Contracts.Thread.IdToThread(threadId); 4097*pRetVal = _target.Contracts.Debugger.GetAttachStateFlags(); 4131Contracts.ILoader loader = _target.Contracts.Loader; 4196walk = new HeapWalk(_target); 4353IGC gc = _target.Contracts.GC; 4462IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 4463TargetPointer mt = _target.Contracts.Object.GetMethodTableAddress(new TargetPointer(obj)); 4504walk = new RefWalk(_target, walkStacks != Interop.BOOL.FALSE, handleWalkMask); 4649TargetPointer mt = _target.Contracts.Object.GetMethodTableAddress(new TargetPointer(obj)); 4718IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 4754uint firstFieldOffset = isReferenceType ? _target.GetTypeInfo(DataType.Object).Size!.Value : 0; 4758IEcmaMetadata ecmaMetadataContract = _target.Contracts.EcmaMetadata; 4759ISignature signature = _target.Contracts.Signature; 4774Contracts.ModuleHandle enclosingModuleHandle = _target.Contracts.Loader.GetModuleHandleFromModulePtr(enclosingModulePtr); 4869IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 4887pLayout->boxOffset = rts.IsCorElementTypeObjRef(componentType) ? 0u : (uint)_target.PointerSize; 4925IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 4927uint pointerSize = (uint)_target.PointerSize; 4952Target.TypeInfo objectHeaderTypeInfo = _target.GetTypeInfo(DataType.ObjectHeader); 4997Contracts.IGC gc = _target.Contracts.GC; 5000pHeapInfo->pointerSize = (uint)_target.PointerSize; 5050if (_target.Contracts.TryGetContract<IReJIT>(out IReJIT rejit)) 5052ILoader loader = _target.Contracts.Loader; 5059ICodeVersions codeVersions = _target.Contracts.CodeVersions; 5093if (!_target.Contracts.Debugger.TryGetDebuggerData(out Contracts.DebuggerData data)) 5122if (!_target.Contracts.Debugger.TryGetDebuggerData(out Contracts.DebuggerData data)) 5155if (!_target.Contracts.TryGetContract<IReJIT>(out IReJIT rejit)) 5158ILoader loader = _target.Contracts.Loader; 5169ICodeVersions codeVersions = _target.Contracts.CodeVersions; 5209ICodeVersions codeVersions = _target.Contracts.CodeVersions; 5246ICodeVersions codeVersions = _target.Contracts.CodeVersions; 5281if (_target.Contracts.TryGetContract<IReJIT>(out _)) 5283ICodeVersions codeVersions = _target.Contracts.CodeVersions; 5327_target.Contracts.Debugger.EnableGCNotificationEvents(fEnable != Interop.BOOL.FALSE); 5386DelegateInfo delegateInfo = _target.Contracts.Object.GetDelegateInfo(new TargetPointer(delegateObject)); 5395IExecutionManager eman = _target.Contracts.ExecutionManager; 5403IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 5410Contracts.ModuleHandle moduleHandle = _target.Contracts.Loader.GetModuleHandleFromModulePtr(modulePtr); 5411*ppFunctionAssembly = _target.Contracts.Loader.GetAssembly(moduleHandle).Value; 5444DelegateInfo delegateInfo = _target.Contracts.Object.GetDelegateInfo(new TargetPointer(delegateObject)); 5471TargetPointer mt = _target.Contracts.Object.GetMethodTableAddress(vmObject); 5472IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 5489Contracts.ILoader loader = _target.Contracts.Loader; 5520*pResult = _target.Contracts.Debugger.MetadataUpdatesApplied() ? Interop.BOOL.TRUE : Interop.BOOL.FALSE; 5554Contracts.ILoader loader = _target.Contracts.Loader; 5584ContinuationInfo info = _target.Contracts.Object.GetContinuationInfo(new TargetPointer(continuationAddress)); 5640Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 5648Contracts.ICodeVersions cv = _target.Contracts.CodeVersions; 5659IReadOnlyList<AsyncSuspensionInfo> suspensionPoints = _target.Contracts.DebugInfo.GetAsyncSuspensionPoints(pCode); 5721Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 5909Contracts.ILoader loader = _target.Contracts.Loader; 5965Contracts.ILoader loader = _target.Contracts.Loader;
Dbi\DacDbiImpl.NativeCodeInfo.cs (1)
19IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem;