SOSDacImpl.IXCLRDataProcess.cs (69)
46IExecutionManager executionManager = _target.Contracts.ExecutionManager;
48executionManager.GetDynamicFunctionTableEntries(tableAddress.ToTargetPointer(_target));
50uint runtimeFunctionSize = _target.GetTypeInfo(DataType.RuntimeFunction).Size!.Value;
72_target.ReadBuffer(functionEntries[i].Value, destination);
85_target.Flush(FlushScope.All);
106Contracts.IThread contract = _target.Contracts.Thread;
134task.Interface = new ClrDataTask(matchingThread, _target, legacyTask);
153TargetPointer thread = _target.Contracts.Thread.IdToThread((uint)taskID);
157task.Interface = new ClrDataTask(thread, _target, legacyTask);
198TargetCodePointer codeAddress = address.ToTargetCodePointer(_target);
199if (_target.TryRead(codeAddress, out byte _))
201*type = _target.Contracts.ExecutionManager.GetCodeKind(codeAddress) switch
244TargetCodePointer codeAddr = address.ToTargetCodePointer(_target);
247if (!_target.TryRead(codeAddr, out byte _))
250IExecutionManager eman = _target.Contracts.ExecutionManager;
253TargetCodePointer managedCodeAddr = _target.Contracts.PrecodeStubs.GetInterpreterCodeFromInterpreterPrecodeIfPresent(codeAddr);
258*displacement = managedCodeAddr.ToAddress(_target).Value - eman.GetStartAddress(codeBlock).Value;
269IPrecodeStubs precodeStubs = _target.Contracts.PrecodeStubs;
275*displacement = codeAddr.ToAddress(_target).Value - entryPoint;
288if (resultName is null && _target.Contracts.AuxiliarySymbols.TryGetAuxiliarySymbolName(address.ToTargetPointer(_target), out string? auxSymbolName))
348IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem;
351TypeNameBuilder.AppendMethodInternal(_target, sb, mdh, TypeNameFormat.FormatSignature
402TargetPointer appDomain = _target.Contracts.Loader.GetAppDomain();
458appDomain.Interface = new ClrDataAppDomain(_target, domains.Enumerator.Current, legacyAppDomain);
528TargetPointer domain = _target.Contracts.Loader.GetAppDomain();
529appDomain.Interface = new ClrDataAppDomain(_target, domain, legacyAppDomain);
572ILoader loader = _target.Contracts.Loader;
630mod.Interface = new ClrDataModule(modules.Enumerator.Current.Address, _target, legacyModule);
700ILoader loader = _target.Contracts.Loader;
709ClrDataAddress imageBase = baseAddress.ToClrDataAddress(_target);
712mod.Interface = new ClrDataModule(module.Address, _target, legacyModule);
948TargetCodePointer methodAddr = address.ToTargetCodePointer(_target);
952bool isTriviallyReadable = _target.TryRead(methodAddr, out byte _);
956IExecutionManager eman = _target.Contracts.ExecutionManager;
960EnumMethodInstances emi = new(_target, methodDesc, TargetPointer.Null);
1023method.Interface = new ClrDataMethodInstance(_target, methodDesc, emi._appDomain, legacyMethod);
1104INotifications notifications = _target.Contracts.Notifications;
1116_legacyImpl.GetModule(moduleLoad.ModuleAddress.ToClrDataAddress(_target), legacyModuleOut);
1120notify.OnModuleLoaded(new ClrDataModule(moduleLoad.ModuleAddress, _target, legacyModule));
1130_legacyImpl.GetModule(moduleUnload.ModuleAddress.ToClrDataAddress(_target), legacyModuleOut);
1134notify.OnModuleUnloaded(new ClrDataModule(moduleUnload.ModuleAddress, _target, legacyModule));
1140TargetPointer appDomain = _target.Contracts.Loader.GetAppDomain();
1142IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem;
1145ClrDataMethodInstance methodInst = new(_target, methodDesc, appDomain, null);
1149notify5.OnCodeGenerated2(methodInst, jit.NativeCodeAddress.ToClrDataAddress(_target));
1158IThread thread = _target.Contracts.Thread;
1162_target,
1202TargetPointer appDomain = _target.Contracts.Loader.GetAppDomain();
1203IRuntimeTypeSystem rts = _target.Contracts.RuntimeTypeSystem;
1205notify4.ExceptionCatcherEnter(new ClrDataMethodInstance(_target, methodDesc, appDomain, null), exceptionCatcherEnter.NativeOffset);
1239hr = StressTestApi.CdacStressApi.HandleRequest(_target, reqCode, inBufferSize, inBuffer, outBufferSize, outBuffer);
1295_target.Contracts.CodeNotifications.SetAllCodeNotifications(moduleAddr, CodeNotificationFlagsConverter.FromCom(flags));
1333ICodeNotifications codeNotif = _target.Contracts.CodeNotifications;
1425_target.Contracts.CodeNotifications.SetCodeNotification(moduleAddr, tokens[i], CodeNotificationFlagsConverter.FromCom(f));
1444*flags = _target.Read<uint>(_target.ReadGlobalPointer(Constants.Globals.DacNotificationFlags));
1475TargetPointer dacNotificationFlags = _target.ReadGlobalPointer(Constants.Globals.DacNotificationFlags);
1476_target.Write<uint>(dacNotificationFlags, flags);
1494flagsLocal = _target.Read<uint>(_target.ReadGlobalPointer(Constants.Globals.DacNotificationFlags));
1528ILoader loader = _target.Contracts.Loader;
1537ClrDataAddress imageBase = baseAddress.ToClrDataAddress(_target);
1541MetadataReader reader = _target.Contracts.EcmaMetadata.GetMetadata(module)
1615_target,
1689int headerSize = HeaderReaderHelpers.GetHeaderSize(_target, ilHeader);
1690int codeSize = HeaderReaderHelpers.GetCodeSize(_target, ilHeader);
1691ClrDataAddress codeStart = new TargetPointer(ilHeader + (uint)headerSize).ToClrDataAddress(_target);
1748_target.Contracts.Notifications.SetGcNotification(gcEvtArgs.condemnedGeneration);