4 instantiations of ModuleHandle
Microsoft.Diagnostics.DataContractReader.Contracts (4)
Contracts\Loader_1.cs (4)
58
return new
ModuleHandle
(modulePointer);
69
return new
ModuleHandle
(assembly.Module);
92
yield return new
ModuleHandle
(assembly.Module);
137
yield return new
ModuleHandle
(assembly.Module);
183 references to ModuleHandle
Microsoft.Diagnostics.DataContractReader.Abstractions (32)
Contracts\IEcmaMetadata.cs (2)
12
TargetSpan GetReadOnlyMetadataAddress(
ModuleHandle
handle) => throw new NotImplementedException();
13
MetadataReader? GetMetadata(
ModuleHandle
module) => throw new NotImplementedException();
Contracts\ILoader.cs (29)
96
ModuleHandle
GetModuleHandleFromModulePtr(TargetPointer modulePointer) => throw new NotImplementedException();
97
ModuleHandle
GetModuleHandleFromAssemblyPtr(TargetPointer assemblyPointer) => throw new NotImplementedException();
98
IEnumerable<
ModuleHandle
> GetModuleHandles(TargetPointer appDomain, AssemblyIterationFlags iterationFlags) => throw new NotImplementedException();
102
TargetPointer GetModule(
ModuleHandle
handle) => throw new NotImplementedException();
103
TargetPointer GetAssembly(
ModuleHandle
handle) => throw new NotImplementedException();
104
TargetPointer GetPEAssembly(
ModuleHandle
handle) => throw new NotImplementedException();
105
bool TryGetLoadedImageContents(
ModuleHandle
handle, out TargetPointer baseAddress, out uint size, out uint imageFlags) => throw new NotImplementedException();
108
bool TryGetSymbolStream(
ModuleHandle
handle, out TargetPointer buffer, out uint size) => throw new NotImplementedException();
109
IEnumerable<TargetPointer> GetAvailableTypeParams(
ModuleHandle
handle) => throw new NotImplementedException();
110
IEnumerable<TargetPointer> GetInstantiatedMethods(
ModuleHandle
handle) => throw new NotImplementedException();
112
bool IsProbeExtensionResultValid(
ModuleHandle
handle) => throw new NotImplementedException();
113
ModuleFlags GetFlags(
ModuleHandle
handle) => throw new NotImplementedException();
114
bool IsReadyToRun(
ModuleHandle
handle) => throw new NotImplementedException();
115
string GetSimpleName(
ModuleHandle
handle) => throw new NotImplementedException();
116
string GetPath(
ModuleHandle
handle) => throw new NotImplementedException();
117
string GetFileName(
ModuleHandle
handle) => throw new NotImplementedException();
118
bool GetFileHeadersInfo(
ModuleHandle
handle, out uint timeStamp, out uint imageSize) => throw new NotImplementedException();
119
TargetPointer GetLoaderAllocator(
ModuleHandle
handle) => throw new NotImplementedException();
120
TargetPointer GetILBase(
ModuleHandle
handle) => throw new NotImplementedException();
121
TargetPointer GetAssemblyLoadContext(
ModuleHandle
handle) => throw new NotImplementedException();
122
ModuleLookupTables GetLookupTables(
ModuleHandle
handle) => throw new NotImplementedException();
125
bool IsCollectible(
ModuleHandle
handle) => throw new NotImplementedException();
126
bool IsDynamic(
ModuleHandle
handle) => throw new NotImplementedException();
127
bool IsModuleMapped(
ModuleHandle
handle) => throw new NotImplementedException();
128
bool IsAssemblyLoaded(
ModuleHandle
handle) => throw new NotImplementedException();
135
TargetPointer GetILHeader(
ModuleHandle
handle, uint token) => throw new NotImplementedException();
137
TargetPointer GetDynamicIL(
ModuleHandle
handle, uint token) => throw new NotImplementedException();
145
DebuggerAssemblyControlFlags GetDebuggerInfoBits(
ModuleHandle
handle) => throw new NotImplementedException();
146
void SetDebuggerInfoBits(
ModuleHandle
handle, DebuggerAssemblyControlFlags newBits) => throw new NotImplementedException();
Contracts\ISignature.cs (1)
12
TypeHandle DecodeFieldSignature(BlobHandle blobHandle,
ModuleHandle
moduleHandle, TypeHandle ctx) => throw new NotImplementedException();
Microsoft.Diagnostics.DataContractReader.Contracts (66)
Contracts\CallingConvention\CallingConvention_1.cs (3)
279
ModuleHandle
moduleHandle = _target.Contracts.Loader.GetModuleHandleFromModulePtr(modulePtr);
331
ModuleHandle
moduleHandle = _target.Contracts.Loader.GetModuleHandleFromModulePtr(modulePtr);
574
public MethodAndTypeContextProvider(Target target,
ModuleHandle
moduleHandle, IRuntimeTypeSystem rts)
Contracts\CodeVersions_1.cs (3)
160
ModuleHandle
mod = loader.GetModuleHandleFromModulePtr(modAddr);
356
ModuleHandle
moduleHandle = _target.Contracts.Loader.GetModuleHandleFromModulePtr(module);
407
ModuleHandle
moduleHandle = loader.GetModuleHandleFromModulePtr(ilCodeVersionHandle.Module);
Contracts\EcmaMetadata_1.cs (8)
16
private readonly Dictionary<
ModuleHandle
, MetadataReaderProvider?> _metadata = [];
17
private readonly Dictionary<
ModuleHandle
, TargetSpan> _readOnlyMetadataAddress = [];
25
public TargetSpan GetReadOnlyMetadataAddress(
ModuleHandle
handle)
50
public MetadataReader? GetMetadata(
ModuleHandle
handle)
64
private MetadataReaderProvider? GetMetadataProvider(
ModuleHandle
handle)
309
private AvailableMetadataType GetAvailableMetadataType(
ModuleHandle
handle)
324
private TargetSpan GetReadWriteSavedMetadataAddress(
ModuleHandle
handle)
332
private TargetEcmaMetadata GetReadWriteMetadata(
ModuleHandle
handle)
Contracts\ExecutionManager\ExecutionManagerCore.cs (1)
505
ModuleHandle
module = loader.GetModuleHandleFromModulePtr(moduleAddr);
Contracts\Loader_1.cs (31)
53
ModuleHandle
ILoader.GetModuleHandleFromModulePtr(TargetPointer modulePointer)
60
ModuleHandle
ILoader.GetModuleHandleFromAssemblyPtr(TargetPointer assemblyPointer)
72
IEnumerable<
ModuleHandle
> ILoader.GetModuleHandles(TargetPointer appDomain, AssemblyIterationFlags iterationFlags)
165
TargetPointer ILoader.GetModule(
ModuleHandle
handle)
170
TargetPointer ILoader.GetAssembly(
ModuleHandle
handle)
176
TargetPointer ILoader.GetPEAssembly(
ModuleHandle
handle)
182
private bool TryGetPEImage(
ModuleHandle
handle, [NotNullWhen(true)] out Data.PEImage? peImage)
198
bool ILoader.TryGetLoadedImageContents(
ModuleHandle
handle, out TargetPointer baseAddress, out uint size, out uint imageFlags)
227
bool ILoader.IsModuleMapped(
ModuleHandle
handle)
337
bool ILoader.TryGetSymbolStream(
ModuleHandle
handle, out TargetPointer buffer, out uint size)
355
IEnumerable<TargetPointer> ILoader.GetAvailableTypeParams(
ModuleHandle
handle)
366
IEnumerable<TargetPointer> ILoader.GetInstantiatedMethods(
ModuleHandle
handle)
378
bool ILoader.IsProbeExtensionResultValid(
ModuleHandle
handle)
406
ModuleFlags ILoader.GetFlags(
ModuleHandle
handle)
412
DebuggerAssemblyControlFlags ILoader.GetDebuggerInfoBits(
ModuleHandle
handle)
418
void ILoader.SetDebuggerInfoBits(
ModuleHandle
handle, DebuggerAssemblyControlFlags newBits)
451
bool ILoader.IsReadyToRun(
ModuleHandle
handle)
457
string ILoader.GetSimpleName(
ModuleHandle
handle)
465
string ILoader.GetPath(
ModuleHandle
handle)
473
string ILoader.GetFileName(
ModuleHandle
handle)
481
bool ILoader.GetFileHeadersInfo(
ModuleHandle
handle, out uint timeStamp, out uint imageSize)
504
TargetPointer ILoader.GetLoaderAllocator(
ModuleHandle
handle)
510
TargetPointer ILoader.GetILBase(
ModuleHandle
handle)
516
TargetPointer ILoader.GetAssemblyLoadContext(
ModuleHandle
handle)
524
ModuleLookupTables ILoader.GetLookupTables(
ModuleHandle
handle)
598
bool ILoader.IsCollectible(
ModuleHandle
handle)
605
bool ILoader.IsDynamic(
ModuleHandle
handle)
612
bool ILoader.IsAssemblyLoaded(
ModuleHandle
handle)
657
private int GetRVAFromMetadata(
ModuleHandle
handle, int token)
667
TargetPointer ILoader.GetILHeader(
ModuleHandle
handle, uint token)
705
TargetPointer ILoader.GetDynamicIL(
ModuleHandle
handle, uint token)
Contracts\ManagedTypeSource_1.cs (2)
262
ModuleHandle
moduleHandle = loader.GetModuleHandleFromAssemblyPtr(systemAssembly);
289
ModuleHandle
moduleHandle,
Contracts\RuntimeMutableTypeSystem_1.cs (1)
42
ModuleHandle
moduleHandle = loader.GetModuleHandleFromModulePtr(modulePtr);
Contracts\RuntimeTypeSystem_1.cs (10)
700
ModuleHandle
moduleHandle = _target.Contracts.Loader.GetModuleHandleFromModulePtr(modulePtr);
1275
ModuleHandle
moduleHandle = loaderContract.GetModuleHandleFromModulePtr(loaderModule);
1326
ModuleHandle
argModuleHandle = loaderContract.GetModuleHandleFromModulePtr(argModulePtr);
1346
ModuleHandle
coreLibModuleHandle = loaderContract.GetModuleHandleFromAssemblyPtr(systemAssembly);
1599
ModuleHandle
moduleHandle = _target.Contracts.Loader.GetModuleHandleFromModulePtr(modulePtr);
1841
ModuleHandle
mod = _target.Contracts.Loader.GetModuleHandleFromModulePtr(loaderModuleAddr);
2241
ModuleHandle
moduleHandle = _target.Contracts.Loader.GetModuleHandleFromModulePtr(modulePtr);
2278
ModuleHandle
moduleHandle = loader.GetModuleHandleFromModulePtr(modulePtr);
2298
private TargetPointer GetStaticAddressHandle(TargetPointer @base, uint offset, bool isRVA, TargetPointer fieldDescPointer,
ModuleHandle
moduleHandle)
2319
ModuleHandle
moduleHandle = loader.GetModuleHandleFromModulePtr(modulePtr);
Contracts\Signature\Signature_1.cs (3)
21
private readonly Dictionary<
ModuleHandle
, SignatureTypeProvider<TypeHandle>> _thProviders = [];
33
private SignatureTypeProvider<TypeHandle> GetTypeHandleProvider(
ModuleHandle
moduleHandle)
45
TypeHandle ISignature.DecodeFieldSignature(BlobHandle blobHandle,
ModuleHandle
moduleHandle, TypeHandle ctx)
Contracts\Signature\SignatureTypeProvider.cs (2)
16
private readonly Contracts.
ModuleHandle
_moduleHandle;
20
public SignatureTypeProvider(Target target, Contracts.
ModuleHandle
moduleHandle)
Contracts\StackWalk\GC\GcSignatureTypeProvider.cs (2)
53
private readonly
ModuleHandle
_moduleHandle;
55
public GcSignatureTypeProvider(Target target,
ModuleHandle
moduleHandle)
Microsoft.Diagnostics.DataContractReader.Legacy (85)
ClrDataFrame.cs (10)
192
GetMethodInfo(out MethodDescHandle mdh, out MetadataReader mdReader, out MethodDefinition methodDef, out Contracts.
ModuleHandle
moduleHandle, out _);
249
GetMethodInfo(out MethodDescHandle mdh, out _, out _, out Contracts.
ModuleHandle
moduleHandle, out _);
295
GetMethodInfo(out MethodDescHandle mdh, out MetadataReader mdReader, out MethodDefinition methodDef, out Contracts.
ModuleHandle
moduleHandle, out _);
403
private void GetMethodInfo(out MethodDescHandle mdh, out MetadataReader mdReader, out MethodDefinition methodDef, out Contracts.
ModuleHandle
moduleHandle, out uint token)
455
Contracts.
ModuleHandle
moduleHandle)
514
private BlobReader? GetLocalSignatureReader(MethodDescHandle mdh, Contracts.
ModuleHandle
moduleHandle, out MetadataReader mdReader)
553
private uint GetLocalVariableCount(MethodDescHandle mdh, Contracts.
ModuleHandle
moduleHandle)
573
MethodDescHandle mdh, Contracts.
ModuleHandle
moduleHandle)
667
private readonly Contracts.
ModuleHandle
_moduleHandle;
669
public FlagSignatureTypeProvider(Target target, Contracts.
ModuleHandle
moduleHandle)
ClrDataMethodDefinition.cs (2)
37
Contracts.
ModuleHandle
moduleHandle = loader.GetModuleHandleFromModulePtr(_module);
70
Contracts.
ModuleHandle
moduleHandle = loader.GetModuleHandleFromModulePtr(_module);
ClrDataModule.cs (9)
84
Contracts.
ModuleHandle
moduleHandle = loader.GetModuleHandleFromModulePtr(_address);
300
Contracts.
ModuleHandle
moduleHandle = loader.GetModuleHandleFromModulePtr(_address);
462
Contracts.
ModuleHandle
handle = loader.GetModuleHandleFromModulePtr(_address);
503
Contracts.
ModuleHandle
handle = contract.GetModuleHandleFromModulePtr(_address);
553
Contracts.
ModuleHandle
handle = contract.GetModuleHandleFromModulePtr(_address);
595
Contracts.
ModuleHandle
moduleHandle = contract.GetModuleHandleFromModulePtr(_address);
641
Contracts.
ModuleHandle
moduleHandle = contract.GetModuleHandleFromModulePtr(_address);
757
Contracts.
ModuleHandle
moduleHandle = contract.GetModuleHandleFromModulePtr(_address);
814
Contracts.
ModuleHandle
handle = loader.GetModuleHandleFromModulePtr(_address);
Dbi\DacDbiImpl.cs (25)
158
Contracts.
ModuleHandle
handle = loader.GetModuleHandleFromModulePtr(new TargetPointer(vmModule));
190
Contracts.
ModuleHandle
handle = loader.GetModuleHandleFromAssemblyPtr(new TargetPointer(vmAssembly));
229
Contracts.
ModuleHandle
handle = loader.GetModuleHandleFromModulePtr(new TargetPointer(vmModule));
292
Contracts.
ModuleHandle
handle = loader.GetModuleHandleFromModulePtr(new TargetPointer(vmModule));
335
Contracts.
ModuleHandle
handle = loader.GetModuleHandleFromModulePtr(new TargetPointer(vmModule));
386
Contracts.
ModuleHandle
handle = loader.GetModuleHandleFromAssemblyPtr(new TargetPointer(vmAssembly));
456
Contracts.
ModuleHandle
handle = loader.GetModuleHandleFromAssemblyPtr(new TargetPointer(vmAssembly));
492
Contracts.
ModuleHandle
handle = loader.GetModuleHandleFromAssemblyPtr(new TargetPointer(vmAssembly));
552
foreach (Contracts.
ModuleHandle
handle in loader.GetModuleHandles(
1273
Contracts.
ModuleHandle
scopeModule = loader.GetModuleHandleFromAssemblyPtr(new TargetPointer(vmScope));
1278
Contracts.
ModuleHandle
referencedModuleHandle = loader.GetModuleHandleFromModulePtr(referencedModule);
1831
Contracts.
ModuleHandle
moduleHandle = loader.GetModuleHandleFromModulePtr(modulePtr);
2148
Contracts.
ModuleHandle
moduleHandle = loader.GetModuleHandleFromAssemblyPtr(new TargetPointer(vmAssembly));
2657
Contracts.
ModuleHandle
moduleHandle = loader.GetModuleHandleFromModulePtr(module);
3096
Contracts.
ModuleHandle
moduleHandle = loader.GetModuleHandleFromAssemblyPtr(new TargetPointer(vmAssembly));
3189
Contracts.
ModuleHandle
moduleHandle = loader.GetModuleHandleFromAssemblyPtr(new TargetPointer(vmAssembly));
3953
Contracts.
ModuleHandle
moduleHandle = loader.GetModuleHandleFromModulePtr(vmModule);
4604
Contracts.
ModuleHandle
enclosingModuleHandle = _target.Contracts.Loader.GetModuleHandleFromModulePtr(enclosingModulePtr);
4883
Contracts.
ModuleHandle
module = loader.GetModuleHandleFromModulePtr(new TargetPointer(vmModule));
4989
Contracts.
ModuleHandle
module = loader.GetModuleHandleFromModulePtr(new TargetPointer(vmModule));
5240
Contracts.
ModuleHandle
moduleHandle = _target.Contracts.Loader.GetModuleHandleFromModulePtr(modulePtr);
5320
Contracts.
ModuleHandle
handle = loader.GetModuleHandleFromModulePtr(new TargetPointer(pModule));
5385
Contracts.
ModuleHandle
handle = loader.GetModuleHandleFromModulePtr(new TargetPointer(vmModule));
5740
Contracts.
ModuleHandle
moduleHandle = loader.GetModuleHandleFromModulePtr(modulePtr);
5796
Contracts.
ModuleHandle
moduleHandle = loader.GetModuleHandleFromModulePtr(modulePtr);
Dbi\TypeDataWalk.cs (1)
217
Contracts.
ModuleHandle
moduleHandle = loader.GetModuleHandleFromAssemblyPtr(new TargetPointer(vmAssembly));
SigFormat.cs (3)
182
Contracts.
ModuleHandle
module = target.Contracts.Loader.GetModuleHandleFromModulePtr(modulePointer);
348
Contracts.
ModuleHandle
module = target.Contracts.Loader.GetModuleHandleFromModulePtr(modulePointer);
393
Contracts.
ModuleHandle
genericVariableModule = target.Contracts.Loader.GetModuleHandleFromModulePtr(genericVariableModulePointer);
SOSDacImpl.cs (24)
133
IEnumerable<Contracts.
ModuleHandle
> modules = loader.GetModuleHandles(
139
foreach (Contracts.
ModuleHandle
module in modules)
147
IEnumerable<Contracts.
ModuleHandle
> failedModules = loader.GetModuleHandles(
354
Contracts.
ModuleHandle
moduleHandle = loader.GetModuleHandleFromAssemblyPtr(assembly.ToTargetPointer(_target));
404
List<Contracts.
ModuleHandle
> modules = loader.GetModuleHandles(
415
Contracts.
ModuleHandle
module = modules[i];
426
Contracts.
ModuleHandle
module = modules[i];
482
Contracts.
ModuleHandle
handle = loader.GetModuleHandleFromAssemblyPtr(addr);
525
Contracts.
ModuleHandle
handle = contract.GetModuleHandleFromAssemblyPtr(assembly.ToTargetPointer(_target));
1074
Contracts.
ModuleHandle
moduleHandle = _target.Contracts.Loader.GetModuleHandleFromModulePtr(modulePtr);
2070
Contracts.
ModuleHandle
moduleHandle = loader.GetModuleHandleFromModulePtr(module);
2553
Contracts.
ModuleHandle
moduleHandle = loader.GetModuleHandleFromModulePtr(module);
2631
Contracts.
ModuleHandle
module = _target.Contracts.Loader.GetModuleHandleFromModulePtr(modulePtr);
2948
Contracts.
ModuleHandle
moduleHandle = loader.GetModuleHandleFromModulePtr(modulePointer);
3117
Contracts.
ModuleHandle
handle = contract.GetModuleHandleFromModulePtr(moduleAddr.ToTargetPointer(_target));
3264
Contracts.
ModuleHandle
moduleHandle = loader.GetModuleHandleFromModulePtr(modulePointer);
3580
Contracts.
ModuleHandle
handle = contract.GetModuleHandleFromModulePtr(addr.ToTargetPointer(_target));
3619
Contracts.
ModuleHandle
handle = contract.GetModuleHandleFromModulePtr(addr.ToTargetPointer(_target));
4818
Contracts.
ModuleHandle
moduleHandle = loader.GetModuleHandleFromModulePtr(moduleAddrPtr);
5307
Contracts.
ModuleHandle
moduleHandle = loader.GetModuleHandleFromModulePtr(modulePtr);
5429
Contracts.
ModuleHandle
moduleHandle = loaderContract.GetModuleHandleFromModulePtr(modulePtr);
5580
Contracts.
ModuleHandle
moduleHandle = loader.GetModuleHandleFromModulePtr(modulePtr);
5632
Contracts.
ModuleHandle
moduleHandle = loader.GetModuleHandleFromModulePtr(modulePtr);
5998
Contracts.
ModuleHandle
moduleHandle = loaderContract.GetModuleHandleFromModulePtr(rtsContract.GetModule(methodTableHandle));
SOSDacImpl.IXCLRDataProcess.cs (7)
291
private IEnumerable<MethodDescHandle> IterateMethodInstantiations(Contracts.
ModuleHandle
moduleHandle)
301
private IEnumerable<Contracts.TypeHandle> IterateTypeParams(Contracts.
ModuleHandle
moduleHandle)
311
private IEnumerable<Contracts.
ModuleHandle
> IterateModules()
314
IEnumerable<Contracts.
ModuleHandle
> modules = loader.GetModuleHandles(
318
foreach (Contracts.
ModuleHandle
moduleHandle in modules)
358
foreach (Contracts.
ModuleHandle
moduleHandle in IterateModules())
381
foreach (Contracts.
ModuleHandle
moduleHandle in IterateModules())
TypeNameBuilder.cs (4)
71
Contracts.
ModuleHandle
module = default;
230
Contracts.
ModuleHandle
module = tnb.Target.Contracts.Loader.GetModuleHandleFromModulePtr(modulePointer);
284
Contracts.
ModuleHandle
moduleHandle = tnb.Target.Contracts.Loader.GetModuleHandleFromModulePtr(typeSystemContract.GetModule(typeHandle));
322
Contracts.
ModuleHandle
module = tnb.Target.Contracts.Loader.GetModuleHandleFromModulePtr(modulePtr);