1 write to _target
Microsoft.Diagnostics.DataContractReader.Legacy (1)
151 references to _target
Microsoft.Diagnostics.DataContractReader.Legacy (151)
Dbi\DacDbiImpl.cs (151)
51if (!_target.TryReadGlobalPointer(Constants.Globals.ProfilerControlBlock, out TargetPointer? profControlBlockAddress))
54Target.TypeInfo type = _target.GetTypeInfo(DataType.ProfControlBlock);
55TargetPointer mainProfInterface = _target.ReadPointerField(profControlBlockAddress.Value, type, "MainProfilerProfInterface");
56int notificationCount = _target.ReadField<int>(profControlBlockAddress.Value, type, "NotificationProfilerCount");
71_target.Flush(FlushScope.All);
84*pResult = _target.Contracts.Debugger.TryGetDebuggerData(out Contracts.DebuggerData data) && data.IsLeftSideInitialized ? Interop.BOOL.TRUE : Interop.BOOL.FALSE;
111*pRetVal = vmAppDomain == 0 ? 0u : _target.ReadGlobal<uint>(Constants.Globals.DefaultADID);
135string name = _target.Contracts.Loader.GetAppDomainFriendlyName();
158Contracts.ILoader loader = _target.Contracts.Loader;
190Contracts.ILoader loader = _target.Contracts.Loader;
229Contracts.ILoader loader = _target.Contracts.Loader;
279Contracts.ILoader loader = _target.Contracts.Loader;
322Contracts.ILoader loader = _target.Contracts.Loader;
373Contracts.ILoader loader = _target.Contracts.Loader;
413Contracts.ILoader loader = _target.Contracts.Loader;
449Contracts.ILoader loader = _target.Contracts.Loader;
509Contracts.ILoader loader = _target.Contracts.Loader;
557_target.Contracts.Debugger.RequestSyncAtEvent();
578_target.Contracts.Debugger.SetSendExceptionsOutsideOfJMC(sendExceptionsOutsideOfJMC != Interop.BOOL.FALSE);
599Contracts.IDebugger debugger = _target.Contracts.Debugger;
630Contracts.IDebugger debugger = _target.Contracts.Debugger;
669Contracts.IThread threadContract = _target.Contracts.Thread;
724Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread));
749Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread));
775Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread));
804Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(threadPtr);
805_target.Contracts.Thread.GetThreadAllocContext(threadPtr, out long allocBytes, out long allocBytesLoh);
841_target.Contracts.Thread.SetDebuggerControlledThreadState(threadPtr, Contracts.DebuggerControlledThreadState.UserSuspend);
845_target.Contracts.Thread.ResetDebuggerControlledThreadState(threadPtr, Contracts.DebuggerControlledThreadState.UserSuspend);
872Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread));
902Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(threadPtr);
980Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread));
1009Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread));
1036TargetPointer exceptionHandle = _target.Contracts.Thread.GetCurrentExceptionHandle(threadPtr);
1039ThreadData data = _target.Contracts.Thread.GetThreadData(threadPtr);
1072if (_target.Contracts.TryGetContract<IComWrappers>(out IComWrappers? comWrappers))
1077comWrappersSuccess = _target.TryReadPointer(managedObjectWrapper, out objectHandle);
1081if (!comWrappersSuccess && _target.Contracts.TryGetContract<IBuiltInCOM>(out IBuiltInCOM? builtInCOM))
1117Contracts.ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread));
1143TargetPointer appDomainPtr = _target.ReadGlobalPointer(Constants.Globals.AppDomain);
1144*pRetVal = _target.ReadPointer(appDomainPtr);
1169Contracts.ILoader loader = _target.Contracts.Loader;
1205Contracts.IThread threadContract = _target.Contracts.Thread;
1217IStackWalk sw = _target.Contracts.StackWalk;
1263IPlatformAgnosticContext ctx = IPlatformAgnosticContext.GetContextForPlatform(_target);
1268_target.Contracts.Thread.GetStackLimitData(new TargetPointer(vmThread), out TargetPointer stackBase, out TargetPointer stackLimit, out _);
1311IStackWalk stackwalk = _target.Contracts.StackWalk;
1345TargetPointer currentAppDomain = _target.ReadPointer(_target.ReadGlobalPointer(Constants.Globals.AppDomain));
1346IStackWalk stackwalk = _target.Contracts.StackWalk;
1435IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem;
1447ILoader loader = _target.Contracts.Loader;
1475IExecutionManager eman = _target.Contracts.ExecutionManager;
1507IPlatformAgnosticContext leafCtx = IPlatformAgnosticContext.GetContextForPlatform(_target);
1509ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread));
1510byte[] leafContext = _target.Contracts.StackWalk.GetContext(threadData, ThreadContextSource.None, allFlags);
1514IPlatformAgnosticContext givenCtx = IPlatformAgnosticContext.GetContextForPlatform(_target);
1543uint allFlags = IPlatformAgnosticContext.GetContextForPlatform(_target).AllContextFlags;
1544ThreadData threadData = _target.Contracts.Thread.GetThreadData(new TargetPointer(vmThread));
1545byte[] context = _target.Contracts.StackWalk.GetContext(threadData, ThreadContextSource.Debugger, allFlags);
1556uint contextSize = IPlatformAgnosticContext.GetContextForPlatform(_target).Size;
1565IPlatformAgnosticContext contextStruct = IPlatformAgnosticContext.GetContextForPlatform(_target);
1566IPlatformAgnosticContext localContextStruct = IPlatformAgnosticContext.GetContextForPlatform(_target);
1587Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem;
1622Contracts.ISignature signature = _target.Contracts.Signature;
1655RuntimeInfoArchitecture arch = _target.Contracts.RuntimeInfo.GetTargetArchitecture();
1661Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem;
1707*pRetVal = _target.Contracts.Object.GetMethodTableAddress(new TargetPointer(rawToken)).Value;
1746ILoader loader = _target.Contracts.Loader;
1749MetadataReader mdReader = _target.Contracts.EcmaMetadata.GetMetadata(moduleHandle)
1762IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem;
1773int headerSize = HeaderReaderHelpers.GetHeaderSize(_target, headerPtr);
1774int codeSize = HeaderReaderHelpers.GetCodeSize(_target, headerPtr);
1776if (HeaderReaderHelpers.TryGetLocalVarSigToken(_target, headerPtr, out int localToken) && localToken != 0)
1819Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem;
1846Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem;
1884IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem;
1940IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem;
1990IRuntimeMutableTypeSystem? mts = _target.Contracts.TryGetContract<IRuntimeMutableTypeSystem>(out IRuntimeMutableTypeSystem enc) ? enc : null;
2148IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem;
2176IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem;
2177TargetPointer mtAddr = _target.Contracts.Object.GetMethodTableAddress(new TargetPointer(addr));
2254Contracts.ILoader loader = _target.Contracts.Loader;
2300IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem;
2387Contracts.ILoader loader = _target.Contracts.Loader;
2473IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem;
2545TargetPointer canonMtPtr = _target.ReadPointer(_target.ReadGlobalPointer(Constants.Globals.CanonMethodTable));
2612Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem;
2645Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem;
2681IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem;
2758Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem;
2802IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem;
2804TargetPointer parentMT = _target.Contracts.Object.GetMethodTableAddress(objectAddress);
2805TargetPointer exceptionMT = _target.ReadPointer(_target.ReadGlobalPointer(Constants.Globals.ExceptionMethodTable));
2861TargetPointer appDomainPointer = _target.ReadGlobalPointer(Constants.Globals.AppDomain);
2862ulong vmAppDomain = _target.ReadPointer(appDomainPointer).Value;
2864IException exceptionContract = _target.Contracts.Exception;
2909IObject obj = _target.Contracts.Object;
2953IObject obj = _target.Contracts.Object;
2957IBuiltInCOM builtInCom = _target.Contracts.BuiltInCOM;
3011*pRetVal = _target.Contracts.Debugger.GetDebuggerControlBlockAddress().Value;
3036*pRetVal = _target.ReadPointer(new TargetPointer(ptr)).Value;
3096TargetPointer obj = _target.ReadPointer(new TargetPointer(vmHandle));
3142TargetPointer syncBlock = _target.Contracts.Object.GetSyncBlockAddress(vmObject);
3144if (syncBlock == TargetPointer.Null || !_target.Contracts.SyncBlock.TryGetLockInfo(syncBlock, out threadId, out recursionCount))
3150TargetPointer threadPtr = _target.Contracts.Thread.IdToThread(threadId);
3191*pRetVal = _target.Contracts.Debugger.GetAttachStateFlags();
3227walk = new HeapWalk(_target);
3384IGC gc = _target.Contracts.GC;
3493IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem;
3494TargetPointer mt = _target.Contracts.Object.GetMethodTableAddress(new TargetPointer(obj));
3549TargetPointer mt = _target.Contracts.Object.GetMethodTableAddress(new TargetPointer(obj));
3618IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem;
3654uint firstFieldOffset = isReferenceType ? _target.GetTypeInfo(DataType.Object).Size!.Value : 0;
3658IEcmaMetadata ecmaMetadataContract = _target.Contracts.EcmaMetadata;
3659ISignature signature = _target.Contracts.Signature;
3674Contracts.ModuleHandle enclosingModuleHandle = _target.Contracts.Loader.GetModuleHandleFromModulePtr(enclosingModulePtr);
3769IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem;
3783pLayout->boxOffset = rts.IsObjRef(typeHandle) ? 0u : (uint)_target.PointerSize;
3822IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem;
3824uint pointerSize = (uint)_target.PointerSize;
3849Target.TypeInfo objectHeaderTypeInfo = _target.GetTypeInfo(DataType.ObjectHeader);
3894Contracts.IGC gc = _target.Contracts.GC;
3897pHeapInfo->pointerSize = (uint)_target.PointerSize;
3947if (_target.Contracts.TryGetContract<IReJIT>(out IReJIT rejit))
3949ILoader loader = _target.Contracts.Loader;
3956ICodeVersions codeVersions = _target.Contracts.CodeVersions;
3990if (!_target.Contracts.Debugger.TryGetDebuggerData(out Contracts.DebuggerData data))
4019if (!_target.Contracts.Debugger.TryGetDebuggerData(out Contracts.DebuggerData data))
4052if (!_target.Contracts.TryGetContract<IReJIT>(out IReJIT rejit))
4055ILoader loader = _target.Contracts.Loader;
4066ICodeVersions codeVersions = _target.Contracts.CodeVersions;
4106ICodeVersions codeVersions = _target.Contracts.CodeVersions;
4143ICodeVersions codeVersions = _target.Contracts.CodeVersions;
4178_target.Contracts.Debugger.EnableGCNotificationEvents(fEnable != Interop.BOOL.FALSE);
4237DelegateInfo delegateInfo = _target.Contracts.Object.GetDelegateInfo(new TargetPointer(delegateObject));
4246IExecutionManager eman = _target.Contracts.ExecutionManager;
4254IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem;
4261Contracts.ModuleHandle moduleHandle = _target.Contracts.Loader.GetModuleHandleFromModulePtr(modulePtr);
4262*ppFunctionAssembly = _target.Contracts.Loader.GetAssembly(moduleHandle).Value;
4295DelegateInfo delegateInfo = _target.Contracts.Object.GetDelegateInfo(new TargetPointer(delegateObject));
4322TargetPointer mt = _target.Contracts.Object.GetMethodTableAddress(vmObject);
4323IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem;
4340Contracts.ILoader loader = _target.Contracts.Loader;
4371*pResult = _target.Contracts.Debugger.MetadataUpdatesApplied() ? Interop.BOOL.TRUE : Interop.BOOL.FALSE;
4405Contracts.ILoader loader = _target.Contracts.Loader;
4442Contracts.IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem;
4630Contracts.ILoader loader = _target.Contracts.Loader;
4686Contracts.ILoader loader = _target.Contracts.Loader;