1 write to _target
Microsoft.Diagnostics.DataContractReader.Legacy (1)
Dbi\DacDbiImpl.cs (1)
73_target = target;
241 references to _target
Microsoft.Diagnostics.DataContractReader.Legacy (241)
Dbi\DacDbiImpl.cs (240)
33private ulong CorDBDefaultEnCFunctionVersion => _target.ReadGlobalPointer(Constants.Globals.CorDBDefaultEnCFunctionVersion).Value; 57if (!_target.TryReadGlobalPointer(Constants.Globals.ProfilerControlBlock, out TargetPointer? profControlBlockAddress)) 60Target.TypeInfo type = _target.GetTypeInfo(DataType.ProfControlBlock); 61TargetPointer mainProfInterface = _target.ReadPointerField(profControlBlockAddress.Value, type, "MainProfilerProfInterface"); 62int notificationCount = _target.ReadField<int>(profControlBlockAddress.Value, type, "NotificationProfilerCount"); 81_target.Flush(FlushScope.All); 120*pResult = _target.Contracts.Debugger.TryGetDebuggerData(out Contracts.DebuggerData data) && data.IsLeftSideInitialized ? Interop.BOOL.TRUE : Interop.BOOL.FALSE; 173string name = _target.Contracts.Loader.GetAppDomainFriendlyName(); 197Contracts.ILoader loader = _target.Contracts.Loader; 230Contracts.ILoader loader = _target.Contracts.Loader; 271Contracts.ILoader loader = _target.Contracts.Loader; 286Contracts.IEcmaMetadata ecmaMetadata = _target.Contracts.EcmaMetadata; 296Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 351Contracts.ILoader loader = _target.Contracts.Loader; 399Contracts.ILoader loader = _target.Contracts.Loader; 402Contracts.IEcmaMetadata ecmaMetadata = _target.Contracts.EcmaMetadata; 449Contracts.ILoader loader = _target.Contracts.Loader; 452byte[] blob = _target.Contracts.EcmaMetadata.GetReadWriteMetadata(handle); 486Contracts.ILoader loader = _target.Contracts.Loader; 489byte[] blob = _target.Contracts.EcmaMetadata.GetReadWriteMetadata(handle); 537Contracts.ILoader loader = _target.Contracts.Loader; 581Contracts.ILoader loader = _target.Contracts.Loader; 633Contracts.ILoader loader = _target.Contracts.Loader; 672IExecutionManager eman = _target.Contracts.ExecutionManager; 673if (_target.TryRead(address, out byte _) && eman.GetCodeBlockHandle(address) is not null) 705Contracts.ILoader loader = _target.Contracts.Loader; 742Contracts.ILoader loader = _target.Contracts.Loader; 803Contracts.ILoader loader = _target.Contracts.Loader; 852_target.Contracts.Debugger.RequestSyncAtEvent(); 874_target.Contracts.Debugger.SetSendExceptionsOutsideOfJMC(sendExceptionsOutsideOfJMC != Interop.BOOL.FALSE); 896Contracts.IDebugger debugger = _target.Contracts.Debugger; 928Contracts.IDebugger debugger = _target.Contracts.Debugger; 977IPlatformAgnosticContext ctx = IPlatformAgnosticContext.GetContextForPlatform(_target); 979if (!_target.TryGetThreadContext(dwThreadId, ctx.AllContextFlags, contextBuffer)) 993int recordSize = ExceptionRecordFullSize(_target.PointerSize); 998TargetPointer espContext = _target.Contracts.Debugger.PrepareExceptionHijack( 1009if (!_target.TrySetThreadContext(dwThreadId, contextBuffer)) 1030Contracts.IThread threadContract = _target.Contracts.Thread; 1086Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread)); 1112Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread)); 1139Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread)); 1169Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(threadPtr); 1170_target.Contracts.Thread.GetThreadAllocContext(threadPtr, out long allocBytes, out long allocBytesLoh); 1207_target.Contracts.Thread.SetDebuggerControlledThreadState(threadPtr, Contracts.DebuggerControlledThreadState.UserSuspend); 1211_target.Contracts.Thread.ResetDebuggerControlledThreadState(threadPtr, Contracts.DebuggerControlledThreadState.UserSuspend); 1239Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread)); 1274Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(threadPtr); 1276IPlatformAgnosticContext context = IPlatformAgnosticContext.GetContextForPlatform(_target); 1277byte[] contextBytes = _target.Contracts.StackWalk.GetContext(threadData, ThreadContextSource.Debugger, context.FullContextFlags); 1279if (!_target.Contracts.ExecutionManager.IsGcSafe(context.InstructionPointer)) 1309Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(threadPtr); 1390Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread)); 1420Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread)); 1448TargetPointer exceptionHandle = _target.Contracts.Thread.GetCurrentExceptionHandle(threadPtr); 1451ThreadData data = _target.Contracts.Thread.GetThreadData(threadPtr); 1485if (_target.Contracts.TryGetContract<IComWrappers>(out IComWrappers? comWrappers)) 1490comWrappersSuccess = _target.TryReadPointer(managedObjectWrapper, out objectHandle); 1494if (!comWrappersSuccess && _target.Contracts.TryGetContract<IBuiltInCOM>(out IBuiltInCOM? builtInCOM)) 1531Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread)); 1558TargetPointer defaultAppDomain = _target.Contracts.Loader.GetAppDomain(); 1585Contracts.ILoader loader = _target.Contracts.Loader; 1636Contracts.IDebugInfo debugInfo = _target.Contracts.DebugInfo; 1702Contracts.IThread threadContract = _target.Contracts.Thread; 1714IStackWalk sw = _target.Contracts.StackWalk; 1742uint contextSize = IPlatformAgnosticContext.GetContextForPlatform(_target).Size; 1764IPlatformAgnosticContext cdacCtx = IPlatformAgnosticContext.GetContextForPlatform(_target); 1765IPlatformAgnosticContext dacCtx = IPlatformAgnosticContext.GetContextForPlatform(_target); 1795IPlatformAgnosticContext ctx = IPlatformAgnosticContext.GetContextForPlatform(_target); 1797ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread)); 1798byte[] seedContext = _target.Contracts.StackWalk.GetContext(threadData, ThreadContextSource.Debugger, allFlags); 1801handleData = new StackWalkHandleData(_target.Contracts.StackWalk, threadData); 1812uint contextSize = IPlatformAgnosticContext.GetContextForPlatform(_target).Size; 1884uint contextSize = IPlatformAgnosticContext.GetContextForPlatform(_target).Size; 2023IPlatformAgnosticContext ctx = IPlatformAgnosticContext.GetContextForPlatform(_target); 2028_target.Contracts.Thread.GetStackLimitData(new TargetPointer(vmThread), out TargetPointer stackBase, out TargetPointer stackLimit, out _); 2087TargetCodePointer controlPC = _target.Contracts.StackWalk.GetInstructionPointer(handle); 2088if (_target.Contracts.Debugger.GetHijackKind(controlPC) != HijackKind.None) 2122uint contextSize = IPlatformAgnosticContext.GetContextForPlatform(_target).Size; 2186IStackWalk sw = _target.Contracts.StackWalk; 2190RuntimeInfoArchitecture arch = _target.Contracts.RuntimeInfo.GetTargetArchitecture(); 2193IPlatformAgnosticContext stripped = IPlatformAgnosticContext.GetContextForPlatform(_target); 2211IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 2212IExecutionManager eman = _target.Contracts.ExecutionManager; 2213TargetPointer currentAppDomain = _target.Contracts.Loader.GetAppDomain(); 2220data.fp = _target.Contracts.StackWalk.GetRuntimeFramePointer(handle).Value; 2232TargetPointer mdPtr = _target.Contracts.StackWalk.GetMethodDescPtr(handle); 2243data.v.exactGenericArgsToken = _target.Contracts.StackWalk.GetExactGenericArgsToken(handle).Value; 2260TargetCodePointer controlPC = _target.Contracts.StackWalk.GetInstructionPointer(handle); 2284data.v.jitFuncData.fpParentOrSelf = _target.Contracts.StackWalk.GetFuncletRootId(handle, out uint parentNativeOffset).Value; 2298IExecutionManager eman = _target.Contracts.ExecutionManager; 2300IGCInfo gcInfo = _target.Contracts.GCInfo; 2301TargetCodePointer ip = _target.Contracts.StackWalk.GetInstructionPointer(handle); 2306IStackWalk stackWalk = _target.Contracts.StackWalk; 2349IStackWalk stackwalk = _target.Contracts.StackWalk; 2384TargetPointer currentAppDomain = _target.Contracts.Loader.GetAppDomain(); 2385IStackWalk stackwalk = _target.Contracts.StackWalk; 2474IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 2492ILoader loader = _target.Contracts.Loader; 2526IExecutionManager eman = _target.Contracts.ExecutionManager; 2569IPlatformAgnosticContext leafCtx = IPlatformAgnosticContext.GetContextForPlatform(_target); 2571ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread)); 2572byte[] leafContext = _target.Contracts.StackWalk.GetContext(threadData, ThreadContextSource.None, allFlags); 2576IPlatformAgnosticContext givenCtx = IPlatformAgnosticContext.GetContextForPlatform(_target); 2606uint allFlags = IPlatformAgnosticContext.GetContextForPlatform(_target).AllContextFlags; 2607ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread)); 2608byte[] context = _target.Contracts.StackWalk.GetContext(threadData, ThreadContextSource.Debugger, allFlags); 2619uint contextSize = IPlatformAgnosticContext.GetContextForPlatform(_target).Size; 2628IPlatformAgnosticContext contextStruct = IPlatformAgnosticContext.GetContextForPlatform(_target); 2629IPlatformAgnosticContext localContextStruct = IPlatformAgnosticContext.GetContextForPlatform(_target); 2648Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 2684Contracts.ISignature signature = _target.Contracts.Signature; 2718RuntimeInfoArchitecture arch = _target.Contracts.RuntimeInfo.GetTargetArchitecture(); 2724Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 2771*pRetVal = _target.Contracts.Object.GetMethodTableAddress(new TargetPointer(rawToken)).Value; 2811ILoader loader = _target.Contracts.Loader; 2814MetadataReader mdReader = _target.Contracts.EcmaMetadata.GetMetadata(moduleHandle) 2830IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 2842int headerSize = HeaderReaderHelpers.GetHeaderSize(_target, headerPtr); 2843int codeSize = HeaderReaderHelpers.GetCodeSize(_target, headerPtr); 2845if (HeaderReaderHelpers.TryGetLocalVarSigToken(_target, headerPtr, out int localToken) && localToken != 0) 2884ILoader loader = _target.Contracts.Loader; 2889IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 2901pCodeInfo->vmNativeCodeMethodDescToken = methodDesc.ToClrDataAddress(_target); 2905nativeCode = _target.Contracts.PrecodeStubs.GetInterpreterCodeFromInterpreterPrecodeIfPresent(nativeCode); 2906pCodeInfo->hotRegion.pAddress = nativeCode.ToAddress(_target).ToClrDataAddress(_target); 2908IExecutionManager executionManager = _target.Contracts.ExecutionManager; 2912pCodeInfo->coldRegion.pAddress = coldStart.ToClrDataAddress(_target); 2916if (_target.Contracts.TryGetContract(out ICodeVersions codeVersions)) 2956TargetCodePointer code = ((ClrDataAddress)codeAddress).ToTargetCodePointer(_target); 2959code = _target.Contracts.PrecodeStubs.GetInterpreterCodeFromInterpreterPrecodeIfPresent(code); 2964code = new TargetCodePointer(code.ToAddress(_target).Value); 2966IExecutionManager executionManager = _target.Contracts.ExecutionManager; 2970pCodeInfo->hotRegion.pAddress = codeStart.ToClrDataAddress(_target); 2974pCodeInfo->coldRegion.pAddress = coldStart.ToClrDataAddress(_target); 2981IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 2983pCodeInfo->vmNativeCodeMethodDescToken = methodDesc.ToClrDataAddress(_target); 2987if (_target.Contracts.TryGetContract(out ICodeVersions codeVersions)) 3001*pVmModule = module.ToClrDataAddress(_target); 3070Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3098Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3137IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3191IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3241IRuntimeMutableTypeSystem? mts = _target.Contracts.TryGetContract<IRuntimeMutableTypeSystem>(out IRuntimeMutableTypeSystem enc) ? enc : null; 3400IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3429IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3430TargetPointer mtAddr = _target.Contracts.Object.GetMethodTableAddress(new TargetPointer(addr)); 3508Contracts.ILoader loader = _target.Contracts.Loader; 3551IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3558TypeDataWalk walk = new TypeDataWalk(_target, rts, canonTh, pTypeData->m_pList, (uint)pTypeData->m_nEntries); 3591IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3747IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3887Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3921Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3948IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3949IRuntimeMutableTypeSystem mrts = _target.Contracts.RuntimeMutableTypeSystem; 3950Contracts.ILoader loader = _target.Contracts.Loader; 4052ILoader loader = _target.Contracts.Loader; 4053IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 4085IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 4163Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 4203IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 4205TargetPointer parentMT = _target.Contracts.Object.GetMethodTableAddress(objectAddress); 4263ulong vmAppDomain = _target.Contracts.Loader.GetAppDomain().Value; 4265IException exceptionContract = _target.Contracts.Exception; 4311IObject obj = _target.Contracts.Object; 4356IObject obj = _target.Contracts.Object; 4360IBuiltInCOM builtInCom = _target.Contracts.BuiltInCOM; 4404IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 4443IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 4444TargetPointer mtAddr = _target.Contracts.Object.GetMethodTableAddress(objectAddress); 4450_target.Contracts.Object.GetStringData(objectAddress, out uint length, out uint offset); 4482IObject objectContract = _target.Contracts.Object; 4483IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 4546IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 4551TargetPointer mt = _target.Contracts.Object.GetMethodTableAddress(objectAddress); 4562*pObjOffsetToVars = (uint)_target.GetTypeInfo(DataType.Object).Size!.Value; 4563*pObjSize = (uint)_target.Contracts.Object.GetSize(objectAddress); 4608*pRetVal = _target.Contracts.Debugger.GetDebuggerControlBlockAddress().Value; 4634*pRetVal = _target.ReadPointer(new TargetPointer(ptr)).Value; 4697TargetPointer obj = _target.ReadPointer(new TargetPointer(vmHandle)); 4745TargetPointer syncBlock = _target.Contracts.Object.GetSyncBlockAddress(vmObject); 4747if (syncBlock == TargetPointer.Null || !_target.Contracts.SyncBlock.TryGetLockInfo(syncBlock, out threadId, out recursionCount)) 4753TargetPointer threadPtr = _target.Contracts.Thread.IdToThread(threadId); 4799*pRetVal = _target.Contracts.Debugger.GetAttachStateFlags(); 4834Contracts.ILoader loader = _target.Contracts.Loader; 4897Contracts.ThreadState threadState = _target.Contracts.Thread.GetThreadData(vmThread).State; 4929walk = new HeapWalk(_target); 5089IGC gc = _target.Contracts.GC; 5199IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 5200TargetPointer mt = _target.Contracts.Object.GetMethodTableAddress(new TargetPointer(obj)); 5242walk = new RefWalk(_target, walkStacks != Interop.BOOL.FALSE, handleWalkMask); 5390TargetPointer mt = _target.Contracts.Object.GetMethodTableAddress(new TargetPointer(obj)); 5461IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 5497uint firstFieldOffset = isReferenceType ? _target.GetTypeInfo(DataType.Object).Size!.Value : 0; 5501IEcmaMetadata ecmaMetadataContract = _target.Contracts.EcmaMetadata; 5502ISignature signature = _target.Contracts.Signature; 5517Contracts.ModuleHandle enclosingModuleHandle = _target.Contracts.Loader.GetModuleHandleFromModulePtr(enclosingModulePtr); 5613IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 5631pLayout->boxOffset = rts.IsCorElementTypeObjRef(componentType) ? 0u : (uint)_target.PointerSize; 5670IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 5672uint pointerSize = (uint)_target.PointerSize; 5697Target.TypeInfo objectHeaderTypeInfo = _target.GetTypeInfo(DataType.ObjectHeader); 5743Contracts.IGC gc = _target.Contracts.GC; 5746pHeapInfo->pointerSize = (uint)_target.PointerSize; 5788bool hasReadWriteMetadata = _target.Contracts.EcmaMetadata.HasReadWriteMetadata(new TargetPointer(vmPEAssembly)); 5824if (_target.Contracts.TryGetContract<IReJIT>(out IReJIT rejit)) 5826ILoader loader = _target.Contracts.Loader; 5836ICodeVersions codeVersions = _target.Contracts.CodeVersions; 5875if (!_target.Contracts.TryGetContract<IReJIT>(out IReJIT rejit)) 5878ILoader loader = _target.Contracts.Loader; 5892ICodeVersions codeVersions = _target.Contracts.CodeVersions; 5934ILoader loader = _target.Contracts.Loader; 5943ICodeVersions codeVersions = _target.Contracts.CodeVersions; 5954int headerSize = HeaderReaderHelpers.GetHeaderSize(_target, headerPtr); 5955int codeSize = HeaderReaderHelpers.GetCodeSize(_target, headerPtr); 5957if (HeaderReaderHelpers.TryGetLocalVarSigToken(_target, headerPtr, out int localToken) && localToken != 0) 6006ICodeVersions codeVersions = _target.Contracts.CodeVersions; 6044ICodeVersions codeVersions = _target.Contracts.CodeVersions; 6080if (_target.Contracts.TryGetContract<IReJIT>(out _)) 6082ICodeVersions codeVersions = _target.Contracts.CodeVersions; 6127_target.Contracts.Debugger.EnableGCNotificationEvents(fEnable != Interop.BOOL.FALSE); 6188DelegateInfo delegateInfo = _target.Contracts.Object.GetDelegateInfo(new TargetPointer(delegateObject)); 6197IExecutionManager eman = _target.Contracts.ExecutionManager; 6205IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 6212Contracts.ModuleHandle moduleHandle = _target.Contracts.Loader.GetModuleHandleFromModulePtr(modulePtr); 6213*ppFunctionAssembly = _target.Contracts.Loader.GetAssembly(moduleHandle).Value; 6247DelegateInfo delegateInfo = _target.Contracts.Object.GetDelegateInfo(new TargetPointer(delegateObject)); 6274TargetPointer mt = _target.Contracts.Object.GetMethodTableAddress(vmObject); 6275IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 6293Contracts.ILoader loader = _target.Contracts.Loader; 6325*pResult = _target.Contracts.Debugger.MetadataUpdatesApplied() ? Interop.BOOL.TRUE : Interop.BOOL.FALSE; 6360Contracts.ILoader loader = _target.Contracts.Loader; 6391ContinuationInfo info = _target.Contracts.Object.GetContinuationInfo(new TargetPointer(continuationAddress)); 6448Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 6456Contracts.ICodeVersions cv = _target.Contracts.CodeVersions; 6467IReadOnlyList<AsyncSuspensionInfo> suspensionPoints = _target.Contracts.DebugInfo.GetAsyncSuspensionPoints(pCode); 6530Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 6718Contracts.ILoader loader = _target.Contracts.Loader; 6774Contracts.ILoader loader = _target.Contracts.Loader;
Dbi\DacDbiImpl.NativeCodeInfo.cs (1)
19IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem;