1 write to _target
Microsoft.Diagnostics.DataContractReader.Legacy (1)
Dbi\DacDbiImpl.cs (1)
69_target = target;
241 references to _target
Microsoft.Diagnostics.DataContractReader.Legacy (241)
Dbi\DacDbiImpl.cs (240)
31private ulong CorDBDefaultEnCFunctionVersion => _target.ReadGlobalPointer(Constants.Globals.CorDBDefaultEnCFunctionVersion).Value; 55if (!_target.TryReadGlobalPointer(Constants.Globals.ProfilerControlBlock, out TargetPointer? profControlBlockAddress)) 58Target.TypeInfo type = _target.GetTypeInfo(DataType.ProfControlBlock); 59TargetPointer mainProfInterface = _target.ReadPointerField(profControlBlockAddress.Value, type, "MainProfilerProfInterface"); 60int notificationCount = _target.ReadField<int>(profControlBlockAddress.Value, type, "NotificationProfilerCount"); 76_target.Flush(FlushScope.All); 109*pResult = _target.Contracts.Debugger.TryGetDebuggerData(out Contracts.DebuggerData data) && data.IsLeftSideInitialized ? Interop.BOOL.TRUE : Interop.BOOL.FALSE; 160string name = _target.Contracts.Loader.GetAppDomainFriendlyName(); 183Contracts.ILoader loader = _target.Contracts.Loader; 215Contracts.ILoader loader = _target.Contracts.Loader; 255Contracts.ILoader loader = _target.Contracts.Loader; 270Contracts.IEcmaMetadata ecmaMetadata = _target.Contracts.EcmaMetadata; 280Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 334Contracts.ILoader loader = _target.Contracts.Loader; 381Contracts.ILoader loader = _target.Contracts.Loader; 384Contracts.IEcmaMetadata ecmaMetadata = _target.Contracts.EcmaMetadata; 430Contracts.ILoader loader = _target.Contracts.Loader; 433byte[] blob = _target.Contracts.EcmaMetadata.GetReadWriteMetadata(handle); 466Contracts.ILoader loader = _target.Contracts.Loader; 469byte[] blob = _target.Contracts.EcmaMetadata.GetReadWriteMetadata(handle); 516Contracts.ILoader loader = _target.Contracts.Loader; 559Contracts.ILoader loader = _target.Contracts.Loader; 610Contracts.ILoader loader = _target.Contracts.Loader; 648IExecutionManager eman = _target.Contracts.ExecutionManager; 649if (_target.TryRead(address, out byte _) && eman.GetCodeBlockHandle(address) is not null) 680Contracts.ILoader loader = _target.Contracts.Loader; 716Contracts.ILoader loader = _target.Contracts.Loader; 776Contracts.ILoader loader = _target.Contracts.Loader; 824_target.Contracts.Debugger.RequestSyncAtEvent(); 845_target.Contracts.Debugger.SetSendExceptionsOutsideOfJMC(sendExceptionsOutsideOfJMC != Interop.BOOL.FALSE); 866Contracts.IDebugger debugger = _target.Contracts.Debugger; 897Contracts.IDebugger debugger = _target.Contracts.Debugger; 945IPlatformAgnosticContext ctx = IPlatformAgnosticContext.GetContextForPlatform(_target); 947if (!_target.TryGetThreadContext(dwThreadId, ctx.AllContextFlags, contextBuffer)) 961int recordSize = ExceptionRecordFullSize(_target.PointerSize); 966TargetPointer espContext = _target.Contracts.Debugger.PrepareExceptionHijack( 977if (!_target.TrySetThreadContext(dwThreadId, contextBuffer)) 997Contracts.IThread threadContract = _target.Contracts.Thread; 1052Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread)); 1077Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread)); 1103Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread)); 1132Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(threadPtr); 1133_target.Contracts.Thread.GetThreadAllocContext(threadPtr, out long allocBytes, out long allocBytesLoh); 1169_target.Contracts.Thread.SetDebuggerControlledThreadState(threadPtr, Contracts.DebuggerControlledThreadState.UserSuspend); 1173_target.Contracts.Thread.ResetDebuggerControlledThreadState(threadPtr, Contracts.DebuggerControlledThreadState.UserSuspend); 1200Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread)); 1234Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(threadPtr); 1236IPlatformAgnosticContext context = IPlatformAgnosticContext.GetContextForPlatform(_target); 1237byte[] contextBytes = _target.Contracts.StackWalk.GetContext(threadData, ThreadContextSource.Debugger, context.FullContextFlags); 1239if (!_target.Contracts.ExecutionManager.IsGcSafe(context.InstructionPointer)) 1268Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(threadPtr); 1346Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread)); 1375Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread)); 1402TargetPointer exceptionHandle = _target.Contracts.Thread.GetCurrentExceptionHandle(threadPtr); 1405ThreadData data = _target.Contracts.Thread.GetThreadData(threadPtr); 1438if (_target.Contracts.TryGetContract<IComWrappers>(out IComWrappers? comWrappers)) 1443comWrappersSuccess = _target.TryReadPointer(managedObjectWrapper, out objectHandle); 1447if (!comWrappersSuccess && _target.Contracts.TryGetContract<IBuiltInCOM>(out IBuiltInCOM? builtInCOM)) 1483Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread)); 1509TargetPointer defaultAppDomain = _target.Contracts.Loader.GetAppDomain(); 1535Contracts.ILoader loader = _target.Contracts.Loader; 1585Contracts.IDebugInfo debugInfo = _target.Contracts.DebugInfo; 1650Contracts.IThread threadContract = _target.Contracts.Thread; 1662IStackWalk sw = _target.Contracts.StackWalk; 1690uint contextSize = IPlatformAgnosticContext.GetContextForPlatform(_target).Size; 1712IPlatformAgnosticContext cdacCtx = IPlatformAgnosticContext.GetContextForPlatform(_target); 1713IPlatformAgnosticContext dacCtx = IPlatformAgnosticContext.GetContextForPlatform(_target); 1742IPlatformAgnosticContext ctx = IPlatformAgnosticContext.GetContextForPlatform(_target); 1744ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread)); 1745byte[] seedContext = _target.Contracts.StackWalk.GetContext(threadData, ThreadContextSource.Debugger, allFlags); 1748handleData = new StackWalkHandleData(_target.Contracts.StackWalk, threadData); 1759uint contextSize = IPlatformAgnosticContext.GetContextForPlatform(_target).Size; 1829uint contextSize = IPlatformAgnosticContext.GetContextForPlatform(_target).Size; 1965IPlatformAgnosticContext ctx = IPlatformAgnosticContext.GetContextForPlatform(_target); 1970_target.Contracts.Thread.GetStackLimitData(new TargetPointer(vmThread), out TargetPointer stackBase, out TargetPointer stackLimit, out _); 2028TargetCodePointer controlPC = _target.Contracts.StackWalk.GetInstructionPointer(handle); 2029if (_target.Contracts.Debugger.GetHijackKind(controlPC) != HijackKind.None) 2063uint contextSize = IPlatformAgnosticContext.GetContextForPlatform(_target).Size; 2127IStackWalk sw = _target.Contracts.StackWalk; 2131RuntimeInfoArchitecture arch = _target.Contracts.RuntimeInfo.GetTargetArchitecture(); 2134IPlatformAgnosticContext stripped = IPlatformAgnosticContext.GetContextForPlatform(_target); 2152IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 2153IExecutionManager eman = _target.Contracts.ExecutionManager; 2154TargetPointer currentAppDomain = _target.Contracts.Loader.GetAppDomain(); 2161data.fp = _target.Contracts.StackWalk.GetRuntimeFramePointer(handle).Value; 2173TargetPointer mdPtr = _target.Contracts.StackWalk.GetMethodDescPtr(handle); 2184data.v.exactGenericArgsToken = _target.Contracts.StackWalk.GetExactGenericArgsToken(handle).Value; 2201TargetCodePointer controlPC = _target.Contracts.StackWalk.GetInstructionPointer(handle); 2225data.v.jitFuncData.fpParentOrSelf = _target.Contracts.StackWalk.GetFuncletRootId(handle, out uint parentNativeOffset).Value; 2239IExecutionManager eman = _target.Contracts.ExecutionManager; 2241IGCInfo gcInfo = _target.Contracts.GCInfo; 2242TargetCodePointer ip = _target.Contracts.StackWalk.GetInstructionPointer(handle); 2247IStackWalk stackWalk = _target.Contracts.StackWalk; 2289IStackWalk stackwalk = _target.Contracts.StackWalk; 2323TargetPointer currentAppDomain = _target.Contracts.Loader.GetAppDomain(); 2324IStackWalk stackwalk = _target.Contracts.StackWalk; 2413IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 2431ILoader loader = _target.Contracts.Loader; 2464IExecutionManager eman = _target.Contracts.ExecutionManager; 2506IPlatformAgnosticContext leafCtx = IPlatformAgnosticContext.GetContextForPlatform(_target); 2508ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread)); 2509byte[] leafContext = _target.Contracts.StackWalk.GetContext(threadData, ThreadContextSource.None, allFlags); 2513IPlatformAgnosticContext givenCtx = IPlatformAgnosticContext.GetContextForPlatform(_target); 2542uint allFlags = IPlatformAgnosticContext.GetContextForPlatform(_target).AllContextFlags; 2543ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread)); 2544byte[] context = _target.Contracts.StackWalk.GetContext(threadData, ThreadContextSource.Debugger, allFlags); 2555uint contextSize = IPlatformAgnosticContext.GetContextForPlatform(_target).Size; 2564IPlatformAgnosticContext contextStruct = IPlatformAgnosticContext.GetContextForPlatform(_target); 2565IPlatformAgnosticContext localContextStruct = IPlatformAgnosticContext.GetContextForPlatform(_target); 2583Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 2618Contracts.ISignature signature = _target.Contracts.Signature; 2651RuntimeInfoArchitecture arch = _target.Contracts.RuntimeInfo.GetTargetArchitecture(); 2657Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 2703*pRetVal = _target.Contracts.Object.GetMethodTableAddress(new TargetPointer(rawToken)).Value; 2742ILoader loader = _target.Contracts.Loader; 2745MetadataReader mdReader = _target.Contracts.EcmaMetadata.GetMetadata(moduleHandle) 2761IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 2773int headerSize = HeaderReaderHelpers.GetHeaderSize(_target, headerPtr); 2774int codeSize = HeaderReaderHelpers.GetCodeSize(_target, headerPtr); 2776if (HeaderReaderHelpers.TryGetLocalVarSigToken(_target, headerPtr, out int localToken) && localToken != 0) 2814ILoader loader = _target.Contracts.Loader; 2819IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 2831pCodeInfo->vmNativeCodeMethodDescToken = methodDesc.ToClrDataAddress(_target); 2835nativeCode = _target.Contracts.PrecodeStubs.GetInterpreterCodeFromInterpreterPrecodeIfPresent(nativeCode); 2836pCodeInfo->hotRegion.pAddress = nativeCode.ToAddress(_target).ToClrDataAddress(_target); 2838IExecutionManager executionManager = _target.Contracts.ExecutionManager; 2842pCodeInfo->coldRegion.pAddress = coldStart.ToClrDataAddress(_target); 2846if (_target.Contracts.TryGetContract(out ICodeVersions codeVersions)) 2885TargetCodePointer code = ((ClrDataAddress)codeAddress).ToTargetCodePointer(_target); 2888code = _target.Contracts.PrecodeStubs.GetInterpreterCodeFromInterpreterPrecodeIfPresent(code); 2893code = new TargetCodePointer(code.ToAddress(_target).Value); 2895IExecutionManager executionManager = _target.Contracts.ExecutionManager; 2899pCodeInfo->hotRegion.pAddress = codeStart.ToClrDataAddress(_target); 2903pCodeInfo->coldRegion.pAddress = coldStart.ToClrDataAddress(_target); 2910IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 2912pCodeInfo->vmNativeCodeMethodDescToken = methodDesc.ToClrDataAddress(_target); 2916if (_target.Contracts.TryGetContract(out ICodeVersions codeVersions)) 2930*pVmModule = module.ToClrDataAddress(_target); 2998Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3025Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3063IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3116IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3166IRuntimeMutableTypeSystem? mts = _target.Contracts.TryGetContract<IRuntimeMutableTypeSystem>(out IRuntimeMutableTypeSystem enc) ? enc : null; 3324IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3352IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3353TargetPointer mtAddr = _target.Contracts.Object.GetMethodTableAddress(new TargetPointer(addr)); 3430Contracts.ILoader loader = _target.Contracts.Loader; 3472IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3479TypeDataWalk walk = new TypeDataWalk(_target, rts, canonTh, pTypeData->m_pList, (uint)pTypeData->m_nEntries); 3511IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3666IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3805Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3838Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3864IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 3865IRuntimeMutableTypeSystem mrts = _target.Contracts.RuntimeMutableTypeSystem; 3866Contracts.ILoader loader = _target.Contracts.Loader; 3968ILoader loader = _target.Contracts.Loader; 3969IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 4000IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 4077Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 4116IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 4118TargetPointer parentMT = _target.Contracts.Object.GetMethodTableAddress(objectAddress); 4175ulong vmAppDomain = _target.Contracts.Loader.GetAppDomain().Value; 4177IException exceptionContract = _target.Contracts.Exception; 4222IObject obj = _target.Contracts.Object; 4266IObject obj = _target.Contracts.Object; 4270IBuiltInCOM builtInCom = _target.Contracts.BuiltInCOM; 4313IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 4351IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 4352TargetPointer mtAddr = _target.Contracts.Object.GetMethodTableAddress(objectAddress); 4358_target.Contracts.Object.GetStringData(objectAddress, out uint length, out uint offset); 4389IObject objectContract = _target.Contracts.Object; 4390IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 4452IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 4457TargetPointer mt = _target.Contracts.Object.GetMethodTableAddress(objectAddress); 4468*pObjOffsetToVars = (uint)_target.GetTypeInfo(DataType.Object).Size!.Value; 4469*pObjSize = (uint)_target.Contracts.Object.GetSize(objectAddress); 4513*pRetVal = _target.Contracts.Debugger.GetDebuggerControlBlockAddress().Value; 4538*pRetVal = _target.ReadPointer(new TargetPointer(ptr)).Value; 4598TargetPointer obj = _target.ReadPointer(new TargetPointer(vmHandle)); 4644TargetPointer syncBlock = _target.Contracts.Object.GetSyncBlockAddress(vmObject); 4646if (syncBlock == TargetPointer.Null || !_target.Contracts.SyncBlock.TryGetLockInfo(syncBlock, out threadId, out recursionCount)) 4652TargetPointer threadPtr = _target.Contracts.Thread.IdToThread(threadId); 4692*pRetVal = _target.Contracts.Debugger.GetAttachStateFlags(); 4726Contracts.ILoader loader = _target.Contracts.Loader; 4788Contracts.ThreadState threadState = _target.Contracts.Thread.GetThreadData(vmThread).State; 4819walk = new HeapWalk(_target); 4976IGC gc = _target.Contracts.GC; 5085IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 5086TargetPointer mt = _target.Contracts.Object.GetMethodTableAddress(new TargetPointer(obj)); 5127walk = new RefWalk(_target, walkStacks != Interop.BOOL.FALSE, handleWalkMask); 5272TargetPointer mt = _target.Contracts.Object.GetMethodTableAddress(new TargetPointer(obj)); 5341IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 5377uint firstFieldOffset = isReferenceType ? _target.GetTypeInfo(DataType.Object).Size!.Value : 0; 5381IEcmaMetadata ecmaMetadataContract = _target.Contracts.EcmaMetadata; 5382ISignature signature = _target.Contracts.Signature; 5397Contracts.ModuleHandle enclosingModuleHandle = _target.Contracts.Loader.GetModuleHandleFromModulePtr(enclosingModulePtr); 5492IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 5510pLayout->boxOffset = rts.IsCorElementTypeObjRef(componentType) ? 0u : (uint)_target.PointerSize; 5548IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 5550uint pointerSize = (uint)_target.PointerSize; 5575Target.TypeInfo objectHeaderTypeInfo = _target.GetTypeInfo(DataType.ObjectHeader); 5620Contracts.IGC gc = _target.Contracts.GC; 5623pHeapInfo->pointerSize = (uint)_target.PointerSize; 5664bool hasReadWriteMetadata = _target.Contracts.EcmaMetadata.HasReadWriteMetadata(new TargetPointer(vmPEAssembly)); 5699if (_target.Contracts.TryGetContract<IReJIT>(out IReJIT rejit)) 5701ILoader loader = _target.Contracts.Loader; 5711ICodeVersions codeVersions = _target.Contracts.CodeVersions; 5749if (!_target.Contracts.TryGetContract<IReJIT>(out IReJIT rejit)) 5752ILoader loader = _target.Contracts.Loader; 5766ICodeVersions codeVersions = _target.Contracts.CodeVersions; 5807ILoader loader = _target.Contracts.Loader; 5816ICodeVersions codeVersions = _target.Contracts.CodeVersions; 5827int headerSize = HeaderReaderHelpers.GetHeaderSize(_target, headerPtr); 5828int codeSize = HeaderReaderHelpers.GetCodeSize(_target, headerPtr); 5830if (HeaderReaderHelpers.TryGetLocalVarSigToken(_target, headerPtr, out int localToken) && localToken != 0) 5878ICodeVersions codeVersions = _target.Contracts.CodeVersions; 5915ICodeVersions codeVersions = _target.Contracts.CodeVersions; 5950if (_target.Contracts.TryGetContract<IReJIT>(out _)) 5952ICodeVersions codeVersions = _target.Contracts.CodeVersions; 5996_target.Contracts.Debugger.EnableGCNotificationEvents(fEnable != Interop.BOOL.FALSE); 6055DelegateInfo delegateInfo = _target.Contracts.Object.GetDelegateInfo(new TargetPointer(delegateObject)); 6064IExecutionManager eman = _target.Contracts.ExecutionManager; 6072IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 6079Contracts.ModuleHandle moduleHandle = _target.Contracts.Loader.GetModuleHandleFromModulePtr(modulePtr); 6080*ppFunctionAssembly = _target.Contracts.Loader.GetAssembly(moduleHandle).Value; 6113DelegateInfo delegateInfo = _target.Contracts.Object.GetDelegateInfo(new TargetPointer(delegateObject)); 6140TargetPointer mt = _target.Contracts.Object.GetMethodTableAddress(vmObject); 6141IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 6158Contracts.ILoader loader = _target.Contracts.Loader; 6189*pResult = _target.Contracts.Debugger.MetadataUpdatesApplied() ? Interop.BOOL.TRUE : Interop.BOOL.FALSE; 6223Contracts.ILoader loader = _target.Contracts.Loader; 6253ContinuationInfo info = _target.Contracts.Object.GetContinuationInfo(new TargetPointer(continuationAddress)); 6309Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 6317Contracts.ICodeVersions cv = _target.Contracts.CodeVersions; 6328IReadOnlyList<AsyncSuspensionInfo> suspensionPoints = _target.Contracts.DebugInfo.GetAsyncSuspensionPoints(pCode); 6390Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem; 6578Contracts.ILoader loader = _target.Contracts.Loader; 6634Contracts.ILoader loader = _target.Contracts.Loader;
Dbi\DacDbiImpl.NativeCodeInfo.cs (1)
19IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem;