SOSDacImpl.IXCLRDataProcess.cs (69)
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);
122Contracts.IThread contract = _target.Contracts.Thread;
150task.Interface = new ClrDataTask(matchingThread, _target, legacyTask, _apiLock);
170TargetPointer thread = _target.Contracts.Thread.IdToThread((uint)taskID);
174task.Interface = new ClrDataTask(thread, _target, legacyTask, _apiLock);
236TargetCodePointer codeAddress = address.ToTargetCodePointer(_target);
237if (_target.TryRead(codeAddress, out byte _))
239*type = _target.Contracts.ExecutionManager.GetCodeKind(codeAddress) switch
283TargetCodePointer codeAddr = address.ToTargetCodePointer(_target);
286if (!_target.TryRead(codeAddr, out byte _))
289IExecutionManager eman = _target.Contracts.ExecutionManager;
292TargetCodePointer managedCodeAddr = _target.Contracts.PrecodeStubs.GetInterpreterCodeFromInterpreterPrecodeIfPresent(codeAddr);
297*displacement = managedCodeAddr.ToAddress(_target).Value - eman.GetStartAddress(codeBlock).Value;
308IPrecodeStubs precodeStubs = _target.Contracts.PrecodeStubs;
314*displacement = codeAddr.ToAddress(_target).Value - entryPoint;
327if (resultName is null && _target.Contracts.AuxiliarySymbols.TryGetAuxiliarySymbolName(address.ToTargetPointer(_target), out string? auxSymbolName))
387IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem;
390TypeNameBuilder.AppendMethodInternal(_target, sb, mdh, TypeNameFormat.FormatSignature
442TargetPointer appDomain = _target.Contracts.Loader.GetAppDomain();
499appDomain.Interface = new ClrDataAppDomain(_target, domains.Enumerator.Current, legacyAppDomain, _apiLock);
571TargetPointer domain = _target.Contracts.Loader.GetAppDomain();
572appDomain.Interface = new ClrDataAppDomain(_target, domain, legacyAppDomain, _apiLock);
628ILoader loader = _target.Contracts.Loader;
687mod.Interface = new ClrDataModule(modules.Enumerator.Current.Address, _target, legacyModule, _apiLock);
759ILoader loader = _target.Contracts.Loader;
768ClrDataAddress imageBase = baseAddress.ToClrDataAddress(_target);
771mod.Interface = new ClrDataModule(module.Address, _target, legacyModule, _apiLock);
1008TargetCodePointer methodAddr = address.ToTargetCodePointer(_target);
1012bool isTriviallyReadable = _target.TryRead(methodAddr, out byte _);
1016IExecutionManager eman = _target.Contracts.ExecutionManager;
1020EnumMethodInstances emi = new(_target, methodDesc, TargetPointer.Null);
1084method.Interface = new ClrDataMethodInstance(_target, methodDesc, emi._appDomain, legacyMethod, _apiLock);
1177INotifications notifications = _target.Contracts.Notifications;
1189_legacyImpl.GetModule(moduleLoad.ModuleAddress.ToClrDataAddress(_target), legacyModuleOut);
1193ClrDataModule module = new(moduleLoad.ModuleAddress, _target, legacyModule, _apiLock);
1204_legacyImpl.GetModule(moduleUnload.ModuleAddress.ToClrDataAddress(_target), legacyModuleOut);
1208ClrDataModule module = new(moduleUnload.ModuleAddress, _target, legacyModule, _apiLock);
1215TargetPointer appDomain = _target.Contracts.Loader.GetAppDomain();
1217IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem;
1220ClrDataMethodInstance methodInst = new(_target, methodDesc, appDomain, null, _apiLock);
1221ClrDataAddress nativeCodeAddress = jit.NativeCodeAddress.ToClrDataAddress(_target);
1241IThread thread = _target.Contracts.Thread;
1245_target,
1290TargetPointer appDomain = _target.Contracts.Loader.GetAppDomain();
1291IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem;
1293ClrDataMethodInstance methodInst = new(_target, methodDesc, appDomain, null, _apiLock);
1333hr = StressTestApi.CdacStressApi.HandleRequest(_target, reqCode, inBufferSize, inBuffer, outBufferSize, outBuffer);
1398_target.Contracts.CodeNotifications.SetAllCodeNotifications(moduleAddr, CodeNotificationFlagsConverter.FromCom(flags));
1445ICodeNotifications codeNotif = _target.Contracts.CodeNotifications;
1538_target.Contracts.CodeNotifications.SetCodeNotification(moduleAddr, tokens[i], CodeNotificationFlagsConverter.FromCom(f));
1558*flags = _target.Read<uint>(_target.ReadGlobalPointer(Constants.Globals.DacNotificationFlags));
1590TargetPointer dacNotificationFlags = _target.ReadGlobalPointer(Constants.Globals.DacNotificationFlags);
1591_target.Write<uint>(dacNotificationFlags, flags);
1609flagsLocal = _target.Read<uint>(_target.ReadGlobalPointer(Constants.Globals.DacNotificationFlags));
1644ILoader loader = _target.Contracts.Loader;
1653ClrDataAddress imageBase = baseAddress.ToClrDataAddress(_target);
1657MetadataReader reader = _target.Contracts.EcmaMetadata.GetMetadata(module)
1732_target,
1808int headerSize = HeaderReaderHelpers.GetHeaderSize(_target, ilHeader);
1809int codeSize = HeaderReaderHelpers.GetCodeSize(_target, ilHeader);
1810ClrDataAddress codeStart = new TargetPointer(ilHeader + (uint)headerSize).ToClrDataAddress(_target);
1881_target.Contracts.Notifications.SetGcNotification(gcEvtArgs.condemnedGeneration);