示例#1
0
文件: DnModule.cs 项目: ottrur/dnSpy
 internal DnModule(DnAssembly ownerAssembly, ICorDebugModule module, int incrementedId, int moduleOrder)
 {
     this.ownerAssembly = ownerAssembly;
     this.module        = new CorModule(module);
     this.incrementedId = incrementedId;
     this.moduleOrder   = moduleOrder;
 }
示例#2
0
 internal DnModule(DnAssembly ownerAssembly, ICorDebugModule module, int incrementedId, int moduleOrder)
 {
     this.ownerAssembly = ownerAssembly;
     this.module = new CorModule(module);
     this.incrementedId = incrementedId;
     this.moduleOrder = moduleOrder;
 }
示例#3
0
		public DebuggerAssembly(Debugger debugger, DnAssembly asm) {
			debugger.Dispatcher.VerifyAccess();
			this.debugger = debugger;
			this.asm = asm;
			this.hashCode = asm.GetHashCode();
			this.uniqueId = asm.UniqueId;
			this.name = asm.Name;
		}
示例#4
0
		internal DnModule(DnAssembly ownerAssembly, ICorDebugModule module, int uniqueId, int uniqueIdProcess, int uniqueIdAppDomain) {
			Assembly = ownerAssembly;
			CorModule = new CorModule(module);
			UniqueId = uniqueId;
			UniqueIdProcess = uniqueIdProcess;
			UniqueIdAppDomain = uniqueIdAppDomain;
			DnModuleId = CorModule.GetModuleId((uint)UniqueId);
		}
示例#5
0
 internal DnModule(DnAssembly ownerAssembly, ICorDebugModule module, int uniqueId, int uniqueIdProcess, int uniqueIdAppDomain)
 {
     this.Assembly          = ownerAssembly;
     this.CorModule         = new CorModule(module);
     this.UniqueId          = uniqueId;
     this.UniqueIdProcess   = uniqueIdProcess;
     this.UniqueIdAppDomain = uniqueIdAppDomain;
     this.DnModuleId        = this.CorModule.DnModuleId;
 }
示例#6
0
 internal DnModule(DnAssembly ownerAssembly, ICorDebugModule module, int uniqueId, int uniqueIdProcess, int uniqueIdAppDomain)
 {
     this.ownerAssembly      = ownerAssembly;
     this.module             = new CorModule(module);
     this.uniqueId           = uniqueId;
     this.uniqueIdProcess    = uniqueIdProcess;
     this.uniqueIdAppDomain  = uniqueIdAppDomain;
     this.serializedDnModule = this.module.SerializedDnModule;
 }
示例#7
0
 void OnAssemblyUnloaded(DnAssembly assembly)
 {
     if (assembly == null)
         return;
     foreach (var module in assembly.Modules)
         OnModuleUnloaded(module);
 }
示例#8
0
 public AssemblyDebuggerEventArgs(DnAssembly assembly, bool added)
 {
     Assembly = assembly;
     Added    = added;
 }
示例#9
0
		void OnAssemblyUnloaded(DnAssembly assembly) {
			if (assembly == null)
				return;
			foreach (var module in assembly.Modules) {
				OnModuleUnloaded(module);
				assembly.ModuleUnloaded(module.CorModule.RawObject);
			}
		}