1 write to _target
Microsoft.Diagnostics.DataContractReader.Legacy (1)
Dbi\DacDbiImpl.cs (1)
74_target = target;
235 references to _target
Microsoft.Diagnostics.DataContractReader.Legacy (235)
Dbi\DacDbiImpl.cs (234)
34private ulong CorDBDefaultEnCFunctionVersion => _target.ReadGlobalPointer(Constants.Globals.CorDBDefaultEnCFunctionVersion).Value; 58if (!_target.TryReadGlobalPointer(Constants.Globals.ProfilerControlBlock, out TargetPointer? profControlBlockAddress)) 61Target.TypeInfo type = _target.GetTypeInfo(DataType.ProfControlBlock); 62TargetPointer mainProfInterface = _target.ReadPointerField(profControlBlockAddress.Value, type, "MainProfilerProfInterface"); 63int notificationCount = _target.ReadField<int>(profControlBlockAddress.Value, type, "NotificationProfilerCount"); 87_target.Flush(FlushScope.All); 139*pResult = _target.Contracts.Debugger.TryGetDebuggerData(out Contracts.DebuggerData data) && data.IsLeftSideInitialized ? Interop.BOOL.TRUE : Interop.BOOL.FALSE; 192string name = _target.Contracts.Loader.GetAppDomainFriendlyName(); 216Contracts.ILoader loader = _target.Contracts.Loader; 249Contracts.ILoader loader = _target.Contracts.Loader; 290Contracts.ILoader loader = _target.Contracts.Loader; 305Contracts.IEcmaMetadata ecmaMetadata = _target.Contracts.EcmaMetadata; 315Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 370Contracts.ILoader loader = _target.Contracts.Loader; 418Contracts.ILoader loader = _target.Contracts.Loader; 421Contracts.IEcmaMetadata ecmaMetadata = _target.Contracts.EcmaMetadata; 468Contracts.ILoader loader = _target.Contracts.Loader; 471byte[] blob = _target.Contracts.EcmaMetadata.GetReadWriteMetadata(handle); 505Contracts.ILoader loader = _target.Contracts.Loader; 508byte[] blob = _target.Contracts.EcmaMetadata.GetReadWriteMetadata(handle); 556Contracts.ILoader loader = _target.Contracts.Loader; 600Contracts.ILoader loader = _target.Contracts.Loader; 652Contracts.ILoader loader = _target.Contracts.Loader; 691IExecutionManager eman = _target.Contracts.ExecutionManager; 692if (_target.TryRead(address, out byte _) && eman.GetCodeBlockHandle(address) is not null) 724Contracts.ILoader loader = _target.Contracts.Loader; 761Contracts.ILoader loader = _target.Contracts.Loader; 822Contracts.ILoader loader = _target.Contracts.Loader; 871_target.Contracts.Debugger.RequestSyncAtEvent(); 893_target.Contracts.Debugger.SetSendExceptionsOutsideOfJMC(sendExceptionsOutsideOfJMC != Interop.BOOL.FALSE); 915Contracts.IDebugger debugger = _target.Contracts.Debugger; 947Contracts.IDebugger debugger = _target.Contracts.Debugger; 996IPlatformAgnosticContext ctx = IPlatformAgnosticContext.GetContextForPlatform(_target); 998if (!_target.TryGetThreadContext(dwThreadId, ctx.AllContextFlags, contextBuffer)) 1012int recordSize = ExceptionRecordFullSize(_target.PointerSize); 1017TargetPointer espContext = _target.Contracts.Debugger.PrepareExceptionHijack( 1028if (!_target.TrySetThreadContext(dwThreadId, contextBuffer)) 1049Contracts.IThread threadContract = _target.Contracts.Thread; 1105Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread)); 1131Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread)); 1158Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread)); 1188Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(threadPtr); 1189_target.Contracts.Thread.GetThreadAllocContext(threadPtr, out long allocBytes, out long allocBytesLoh); 1226_target.Contracts.Thread.SetDebuggerControlledThreadState(threadPtr, Contracts.DebuggerControlledThreadState.UserSuspend); 1230_target.Contracts.Thread.ResetDebuggerControlledThreadState(threadPtr, Contracts.DebuggerControlledThreadState.UserSuspend); 1258Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread)); 1293Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(threadPtr); 1295IPlatformAgnosticContext context = IPlatformAgnosticContext.GetContextForPlatform(_target); 1296byte[] contextBytes = _target.Contracts.StackWalk.GetContext(threadData, ThreadContextSource.Debugger, context.FullContextFlags); 1298if (!_target.Contracts.ExecutionManager.IsGcSafe(context.InstructionPointer)) 1328Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(threadPtr); 1409Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread)); 1439Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread)); 1467TargetPointer exceptionHandle = _target.Contracts.Thread.GetCurrentExceptionHandle(threadPtr); 1470ThreadData data = _target.Contracts.Thread.GetThreadData(threadPtr); 1504if (_target.Contracts.TryGetContract<IComWrappers>(out IComWrappers? comWrappers)) 1509comWrappersSuccess = _target.TryReadPointer(managedObjectWrapper, out objectHandle); 1513if (!comWrappersSuccess && _target.Contracts.TryGetContract<IBuiltInCOM>(out IBuiltInCOM? builtInCOM)) 1550Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread)); 1577TargetPointer defaultAppDomain = _target.Contracts.Loader.GetAppDomain(); 1604Contracts.ILoader loader = _target.Contracts.Loader; 1655Contracts.IDebugInfo debugInfo = _target.Contracts.DebugInfo; 1721Contracts.IThread threadContract = _target.Contracts.Thread; 1733IStackWalk sw = _target.Contracts.StackWalk; 1761uint contextSize = IPlatformAgnosticContext.GetContextForPlatform(_target).Size; 1814IPlatformAgnosticContext ctx = IPlatformAgnosticContext.GetContextForPlatform(_target); 1816ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread)); 1817byte[] seedContext = _target.Contracts.StackWalk.GetContext(threadData, ThreadContextSource.Debugger, allFlags); 1820handleData = new StackWalkHandleData(_target.Contracts.StackWalk, threadData); 1831uint contextSize = IPlatformAgnosticContext.GetContextForPlatform(_target).Size; 1903uint contextSize = IPlatformAgnosticContext.GetContextForPlatform(_target).Size; 2042IPlatformAgnosticContext ctx = IPlatformAgnosticContext.GetContextForPlatform(_target); 2047_target.Contracts.Thread.GetStackLimitData(new TargetPointer(vmThread), out TargetPointer stackBase, out TargetPointer stackLimit, out _); 2106TargetCodePointer controlPC = _target.Contracts.StackWalk.GetInstructionPointer(handle); 2107if (_target.Contracts.Debugger.GetHijackKind(controlPC) != HijackKind.None) 2205IStackWalk sw = _target.Contracts.StackWalk; 2209RuntimeInfoArchitecture arch = _target.Contracts.RuntimeInfo.GetTargetArchitecture(); 2212IPlatformAgnosticContext stripped = IPlatformAgnosticContext.GetContextForPlatform(_target); 2230IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 2231IExecutionManager eman = _target.Contracts.ExecutionManager; 2232TargetPointer currentAppDomain = _target.Contracts.Loader.GetAppDomain(); 2239data.fp = _target.Contracts.StackWalk.GetRuntimeFramePointer(handle).Value; 2251TargetPointer mdPtr = _target.Contracts.StackWalk.GetMethodDescPtr(handle); 2262data.v.exactGenericArgsToken = _target.Contracts.StackWalk.GetExactGenericArgsToken(handle).Value; 2279TargetCodePointer controlPC = _target.Contracts.StackWalk.GetInstructionPointer(handle); 2303data.v.jitFuncData.fpParentOrSelf = _target.Contracts.StackWalk.GetFuncletRootId(handle, out uint parentNativeOffset).Value; 2317IExecutionManager eman = _target.Contracts.ExecutionManager; 2319IGCInfo gcInfo = _target.Contracts.GCInfo; 2320TargetCodePointer ip = _target.Contracts.StackWalk.GetInstructionPointer(handle); 2325IStackWalk stackWalk = _target.Contracts.StackWalk; 2368IStackWalk stackwalk = _target.Contracts.StackWalk; 2403TargetPointer currentAppDomain = _target.Contracts.Loader.GetAppDomain(); 2404IStackWalk stackwalk = _target.Contracts.StackWalk; 2493IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 2511ILoader loader = _target.Contracts.Loader; 2545IExecutionManager eman = _target.Contracts.ExecutionManager; 2588IPlatformAgnosticContext leafCtx = IPlatformAgnosticContext.GetContextForPlatform(_target); 2590ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread)); 2591byte[] leafContext = _target.Contracts.StackWalk.GetContext(threadData, ThreadContextSource.None, allFlags); 2595IPlatformAgnosticContext givenCtx = IPlatformAgnosticContext.GetContextForPlatform(_target); 2625uint allFlags = IPlatformAgnosticContext.GetContextForPlatform(_target).AllContextFlags; 2626ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread)); 2627byte[] context = _target.Contracts.StackWalk.GetContext(threadData, ThreadContextSource.Debugger, allFlags); 2667Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 2703Contracts.ISignature signature = _target.Contracts.Signature; 2737RuntimeInfoArchitecture arch = _target.Contracts.RuntimeInfo.GetTargetArchitecture(); 2743Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 2790*pRetVal = _target.Contracts.Object.GetMethodTableAddress(new TargetPointer(rawToken)).Value; 2830ILoader loader = _target.Contracts.Loader; 2833MetadataReader mdReader = _target.Contracts.EcmaMetadata.GetMetadata(moduleHandle) 2849IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 2861int headerSize = HeaderReaderHelpers.GetHeaderSize(_target, headerPtr); 2862int codeSize = HeaderReaderHelpers.GetCodeSize(_target, headerPtr); 2864if (HeaderReaderHelpers.TryGetLocalVarSigToken(_target, headerPtr, out int localToken) && localToken != 0) 2903ILoader loader = _target.Contracts.Loader; 2908IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 2920pCodeInfo->vmNativeCodeMethodDescToken = methodDesc.ToClrDataAddress(_target); 2924nativeCode = _target.Contracts.PrecodeStubs.GetInterpreterCodeFromInterpreterPrecodeIfPresent(nativeCode); 2925pCodeInfo->hotRegion.pAddress = nativeCode.ToAddress(_target).ToClrDataAddress(_target); 2927IExecutionManager executionManager = _target.Contracts.ExecutionManager; 2931pCodeInfo->coldRegion.pAddress = coldStart.ToClrDataAddress(_target); 2935if (_target.Contracts.TryGetContract(out ICodeVersions codeVersions)) 2975TargetCodePointer code = ((ClrDataAddress)codeAddress).ToTargetCodePointer(_target); 2978code = _target.Contracts.PrecodeStubs.GetInterpreterCodeFromInterpreterPrecodeIfPresent(code); 2983code = new TargetCodePointer(code.ToAddress(_target).Value); 2985IExecutionManager executionManager = _target.Contracts.ExecutionManager; 2989pCodeInfo->hotRegion.pAddress = codeStart.ToClrDataAddress(_target); 2993pCodeInfo->coldRegion.pAddress = coldStart.ToClrDataAddress(_target); 3000IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3002pCodeInfo->vmNativeCodeMethodDescToken = methodDesc.ToClrDataAddress(_target); 3006if (_target.Contracts.TryGetContract(out ICodeVersions codeVersions)) 3020*pVmModule = module.ToClrDataAddress(_target); 3089Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3117Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3156IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3210IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3260IRuntimeMutableTypeSystem? mts = _target.Contracts.TryGetContract<IRuntimeMutableTypeSystem>(out IRuntimeMutableTypeSystem enc) ? enc : null; 3419IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3448IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3449TargetPointer mtAddr = _target.Contracts.Object.GetMethodTableAddress(new TargetPointer(addr)); 3527Contracts.ILoader loader = _target.Contracts.Loader; 3570IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3577TypeDataWalk walk = new TypeDataWalk(_target, rts, canonTh, pTypeData->m_pList, (uint)pTypeData->m_nEntries); 3610IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3766IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3906Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3940Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3967IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3968IRuntimeMutableTypeSystem mrts = _target.Contracts.RuntimeMutableTypeSystem; 3969Contracts.ILoader loader = _target.Contracts.Loader; 4071ILoader loader = _target.Contracts.Loader; 4072IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 4104IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 4182Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 4222IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 4224TargetPointer parentMT = _target.Contracts.Object.GetMethodTableAddress(objectAddress); 4282ulong vmAppDomain = _target.Contracts.Loader.GetAppDomain().Value; 4284IException exceptionContract = _target.Contracts.Exception; 4330IObject obj = _target.Contracts.Object; 4375IObject obj = _target.Contracts.Object; 4379IBuiltInCOM builtInCom = _target.Contracts.BuiltInCOM; 4423IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 4462IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 4463TargetPointer mtAddr = _target.Contracts.Object.GetMethodTableAddress(objectAddress); 4469_target.Contracts.Object.GetStringData(objectAddress, out uint length, out uint offset); 4501IObject objectContract = _target.Contracts.Object; 4502IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 4565IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 4570TargetPointer mt = _target.Contracts.Object.GetMethodTableAddress(objectAddress); 4581*pObjOffsetToVars = (uint)_target.GetTypeInfo(DataType.Object).Size!.Value; 4582*pObjSize = (uint)_target.Contracts.Object.GetSize(objectAddress); 4627*pRetVal = _target.Contracts.Debugger.GetDebuggerControlBlockAddress().Value; 4653*pRetVal = _target.ReadPointer(new TargetPointer(ptr)).Value; 4716TargetPointer obj = _target.ReadPointer(new TargetPointer(vmHandle)); 4764TargetPointer syncBlock = _target.Contracts.Object.GetSyncBlockAddress(vmObject); 4766if (syncBlock == TargetPointer.Null || !_target.Contracts.SyncBlock.TryGetLockInfo(syncBlock, out threadId, out recursionCount)) 4772TargetPointer threadPtr = _target.Contracts.Thread.IdToThread(threadId); 4818*pRetVal = _target.Contracts.Debugger.GetAttachStateFlags(); 4853Contracts.ILoader loader = _target.Contracts.Loader; 4916Contracts.ThreadState threadState = _target.Contracts.Thread.GetThreadData(vmThread).State; 4948walk = new HeapWalk(_target); 5108IGC gc = _target.Contracts.GC; 5218IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 5219TargetPointer mt = _target.Contracts.Object.GetMethodTableAddress(new TargetPointer(obj)); 5261walk = new RefWalk(_target, walkStacks != Interop.BOOL.FALSE, handleWalkMask); 5409TargetPointer mt = _target.Contracts.Object.GetMethodTableAddress(new TargetPointer(obj)); 5480IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 5516uint firstFieldOffset = isReferenceType ? _target.GetTypeInfo(DataType.Object).Size!.Value : 0; 5520IEcmaMetadata ecmaMetadataContract = _target.Contracts.EcmaMetadata; 5521ISignature signature = _target.Contracts.Signature; 5536Contracts.ModuleHandle enclosingModuleHandle = _target.Contracts.Loader.GetModuleHandleFromModulePtr(enclosingModulePtr); 5632IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 5650pLayout->boxOffset = rts.IsCorElementTypeObjRef(componentType) ? 0u : (uint)_target.PointerSize; 5689IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 5691uint pointerSize = (uint)_target.PointerSize; 5716Target.TypeInfo objectHeaderTypeInfo = _target.GetTypeInfo(DataType.ObjectHeader); 5762Contracts.IGC gc = _target.Contracts.GC; 5765pHeapInfo->pointerSize = (uint)_target.PointerSize; 5807bool hasReadWriteMetadata = _target.Contracts.EcmaMetadata.HasReadWriteMetadata(new TargetPointer(vmPEAssembly)); 5843if (_target.Contracts.TryGetContract<IReJIT>(out IReJIT rejit)) 5845ILoader loader = _target.Contracts.Loader; 5855ICodeVersions codeVersions = _target.Contracts.CodeVersions; 5894if (!_target.Contracts.TryGetContract<IReJIT>(out IReJIT rejit)) 5897ILoader loader = _target.Contracts.Loader; 5911ICodeVersions codeVersions = _target.Contracts.CodeVersions; 5953ILoader loader = _target.Contracts.Loader; 5962ICodeVersions codeVersions = _target.Contracts.CodeVersions; 5973int headerSize = HeaderReaderHelpers.GetHeaderSize(_target, headerPtr); 5974int codeSize = HeaderReaderHelpers.GetCodeSize(_target, headerPtr); 5976if (HeaderReaderHelpers.TryGetLocalVarSigToken(_target, headerPtr, out int localToken) && localToken != 0) 6025ICodeVersions codeVersions = _target.Contracts.CodeVersions; 6063ICodeVersions codeVersions = _target.Contracts.CodeVersions; 6099if (_target.Contracts.TryGetContract<IReJIT>(out _)) 6101ICodeVersions codeVersions = _target.Contracts.CodeVersions; 6146_target.Contracts.Debugger.EnableGCNotificationEvents(fEnable != Interop.BOOL.FALSE); 6207DelegateInfo delegateInfo = _target.Contracts.Object.GetDelegateInfo(new TargetPointer(delegateObject)); 6216IExecutionManager eman = _target.Contracts.ExecutionManager; 6224IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 6231Contracts.ModuleHandle moduleHandle = _target.Contracts.Loader.GetModuleHandleFromModulePtr(modulePtr); 6232*ppFunctionAssembly = _target.Contracts.Loader.GetAssembly(moduleHandle).Value; 6266DelegateInfo delegateInfo = _target.Contracts.Object.GetDelegateInfo(new TargetPointer(delegateObject)); 6293TargetPointer mt = _target.Contracts.Object.GetMethodTableAddress(vmObject); 6294IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 6312Contracts.ILoader loader = _target.Contracts.Loader; 6344*pResult = _target.Contracts.Debugger.MetadataUpdatesApplied() ? Interop.BOOL.TRUE : Interop.BOOL.FALSE; 6379Contracts.ILoader loader = _target.Contracts.Loader; 6410ContinuationInfo info = _target.Contracts.Object.GetContinuationInfo(new TargetPointer(continuationAddress)); 6467Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 6475Contracts.ICodeVersions cv = _target.Contracts.CodeVersions; 6486IReadOnlyList<AsyncSuspensionInfo> suspensionPoints = _target.Contracts.DebugInfo.GetAsyncSuspensionPoints(pCode); 6549Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 6737Contracts.ILoader loader = _target.Contracts.Loader; 6793Contracts.ILoader loader = _target.Contracts.Loader;
Dbi\DacDbiImpl.NativeCodeInfo.cs (1)
19IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem;