SOSDacImpl.IXCLRDataProcess.cs (67)
48IExecutionManager executionManager = _target.Contracts.ExecutionManager;
50executionManager.GetDynamicFunctionTableEntries(tableAddress.ToTargetPointer(_target));
52uint runtimeFunctionSize = _target.GetTypeInfo(DataType.RuntimeFunction).Size!.Value;
74_target.ReadBuffer(functionEntries[i].Value, destination);
88_target.Flush(FlushScope.All);
127Contracts.IThread contract = _target.Contracts.Thread;
155task.Interface = new ClrDataTask(matchingThread, _target, legacyTask, _apiLock);
179TargetPointer thread = _target.Contracts.Thread.IdToThread((uint)taskID);
183task.Interface = new ClrDataTask(thread, _target, legacyTask, _apiLock);
245TargetCodePointer codeAddress = address.ToTargetCodePointer(_target);
246if (_target.TryRead(codeAddress, out byte _))
248*type = _target.Contracts.ExecutionManager.GetCodeKind(codeAddress) switch
292TargetCodePointer codeAddr = address.ToTargetCodePointer(_target);
295if (!_target.TryRead(codeAddr, out byte _))
298IExecutionManager eman = _target.Contracts.ExecutionManager;
301TargetCodePointer managedCodeAddr = _target.Contracts.PrecodeStubs.GetInterpreterCodeFromInterpreterPrecodeIfPresent(codeAddr);
306*displacement = managedCodeAddr.ToAddress(_target).Value - eman.GetStartAddress(codeBlock).Value;
317IPrecodeStubs precodeStubs = _target.Contracts.PrecodeStubs;
323*displacement = codeAddr.ToAddress(_target).Value - entryPoint;
336if (resultName is null && _target.Contracts.AuxiliarySymbols.TryGetAuxiliarySymbolName(address.ToTargetPointer(_target), out string? auxSymbolName))
396IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem;
399TypeNameBuilder.AppendMethodInternal(_target, sb, mdh, TypeNameFormat.FormatSignature
451TargetPointer appDomain = _target.Contracts.Loader.GetAppDomain();
508appDomain.Interface = new ClrDataAppDomain(_target, domains.Enumerator.Current, legacyAppDomain, _apiLock);
581TargetPointer domain = _target.Contracts.Loader.GetAppDomain();
582appDomain.Interface = new ClrDataAppDomain(_target, domain, legacyAppDomain, _apiLock);
641ILoader loader = _target.Contracts.Loader;
700mod.Interface = new ClrDataModule(modules.Enumerator.Current.Address, _target, legacyModule, _apiLock);
773ILoader loader = _target.Contracts.Loader;
782ClrDataAddress imageBase = baseAddress.ToClrDataAddress(_target);
785mod.Interface = new ClrDataModule(module.Address, _target, legacyModule, _apiLock);
1020TargetCodePointer methodAddr = address.ToTargetCodePointer(_target);
1024bool isTriviallyReadable = _target.TryRead(methodAddr, out byte _);
1028IExecutionManager eman = _target.Contracts.ExecutionManager;
1032EnumMethodInstances emi = new(_target, methodDesc, TargetPointer.Null);
1095method.Interface = new ClrDataMethodInstance(_target, methodDesc, emi._appDomain, legacyMethod, _apiLock);
1187INotifications notifications = _target.Contracts.Notifications;
1199_legacyImpl.GetModule(moduleLoad.ModuleAddress.ToClrDataAddress(_target), legacyModuleOut);
1203ClrDataModule module = new(moduleLoad.ModuleAddress, _target, legacyModule, _apiLock);
1214_legacyImpl.GetModule(moduleUnload.ModuleAddress.ToClrDataAddress(_target), legacyModuleOut);
1218ClrDataModule module = new(moduleUnload.ModuleAddress, _target, legacyModule, _apiLock);
1225TargetPointer appDomain = _target.Contracts.Loader.GetAppDomain();
1227IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem;
1230ClrDataMethodInstance methodInst = new(_target, methodDesc, appDomain, null, _apiLock);
1231ClrDataAddress nativeCodeAddress = jit.NativeCodeAddress.ToClrDataAddress(_target);
1251IThread thread = _target.Contracts.Thread;
1255_target,
1300TargetPointer appDomain = _target.Contracts.Loader.GetAppDomain();
1301IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem;
1303ClrDataMethodInstance methodInst = new(_target, methodDesc, appDomain, null, _apiLock);
1343hr = StressTestApi.CdacStressApi.HandleRequest(_target, reqCode, inBufferSize, inBuffer, outBufferSize, outBuffer);
1408_target.Contracts.CodeNotifications.SetAllCodeNotifications(moduleAddr, CodeNotificationFlagsConverter.FromCom(flags));
1455ICodeNotifications codeNotif = _target.Contracts.CodeNotifications;
1548_target.Contracts.CodeNotifications.SetCodeNotification(moduleAddr, tokens[i], CodeNotificationFlagsConverter.FromCom(f));
1568*flags = _target.Read<uint>(_target.ReadGlobalPointer(Constants.Globals.DacNotificationFlags));
1600TargetPointer dacNotificationFlags = _target.ReadGlobalPointer(Constants.Globals.DacNotificationFlags);
1601_target.Write<uint>(dacNotificationFlags, flags);
1654ILoader loader = _target.Contracts.Loader;
1663ClrDataAddress imageBase = baseAddress.ToClrDataAddress(_target);
1667MetadataReader reader = _target.Contracts.EcmaMetadata.GetMetadata(module)
1742_target,
1816int headerSize = HeaderReaderHelpers.GetHeaderSize(_target, ilHeader);
1817int codeSize = HeaderReaderHelpers.GetCodeSize(_target, ilHeader);
1818ClrDataAddress codeStart = new TargetPointer(ilHeader + (uint)headerSize).ToClrDataAddress(_target);
1889_target.Contracts.Notifications.SetGcNotification(gcEvtArgs.condemnedGeneration);