当前位置: 首页>>代码示例>>C#>>正文


C# ICorDebugModule类代码示例

本文整理汇总了C#中ICorDebugModule的典型用法代码示例。如果您正苦于以下问题:C# ICorDebugModule类的具体用法?C# ICorDebugModule怎么用?C# ICorDebugModule使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ICorDebugModule类属于命名空间,在下文中一共展示了ICorDebugModule类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: DebugMetadataImporter

        public DebugMetadataImporter(ICorDebugModule module)
        {
            _module = module;

            Guid interfaceGuid = typeof(IMetadataImport).GUID;
            _module.GetMetaDataInterface(ref interfaceGuid, out _metadatImport);
        }
开发者ID:anvaka,项目名称:slinject,代码行数:7,代码来源:DebugMetadataImporter.cs

示例2: DnModule

 internal DnModule(DnAssembly ownerAssembly, ICorDebugModule module, int incrementedId, int moduleOrder)
 {
     this.ownerAssembly = ownerAssembly;
     this.module = new CorModule(module);
     this.incrementedId = incrementedId;
     this.moduleOrder = moduleOrder;
 }
开发者ID:lovebanyi,项目名称:dnSpy,代码行数:7,代码来源:DnModule.cs

示例3: CorModule

 public CorModule(ICorDebugModule md)
 {
     corModule = md;
     char[] name = new char[300];
     uint sz = 0;
     corModule.GetName((uint)name.Length, out sz, name);
     fullName = new String(name, 0, (int)(sz - 1));
 }
开发者ID:balaramaraju,项目名称:DotNetProcessViewer,代码行数:8,代码来源:CorModule.cs

示例4: MoveNext

        //
        // IEnumerator interface
        //

        #region IEnumerator Members

        public bool MoveNext()
        {
            var a = new ICorDebugModule[1];
            uint c = 0;
            int r = m_enum.Next((uint) a.Length, a, out c);
            if (r == 0 && c == 1) // S_OK && we got 1 new element
                m_mod = new CorModule(a[0]);
            else
                m_mod = null;
            return m_mod != null;
        }
开发者ID:pusp,项目名称:o2platform,代码行数:17,代码来源:ModuleEnumerator.cs

示例5: LoadModules

        private IList<DebugModule> LoadModules()
        {
            ICorDebugModuleEnum modulesEnum;
            _assembly.EnumerateModules(out modulesEnum);
            uint modCount;
            modulesEnum.GetCount(out modCount);
            ICorDebugModule[] modules = new ICorDebugModule[modCount];
            uint modulesFetched;
            modulesEnum.Next(modCount, modules, out modulesFetched);

            var result = new List<DebugModule>((int)modulesFetched);
            for (int i = 0; i < modulesFetched; i++)
            {
                result.Add(new DebugModule(modules[i]));
            }

            return result;
        }
开发者ID:anvaka,项目名称:slinject,代码行数:18,代码来源:DebugAssembly.cs

示例6: Module

        internal Module(AppDomain appDomain, ICorDebugModule corModule)
        {
            this.appDomain = appDomain;
            this.process = appDomain.Process;
            this.corModule = corModule;

            metaData = new MetaDataImport(corModule);

            if (IsDynamic || IsInMemory) {
                name     = corModule.GetName();
            } else {
                fullPath = corModule.GetName();
                name     = System.IO.Path.GetFileName(FullPath);
            }
            asmFilename = corModule.GetAssembly().GetName();

            SetJITCompilerFlags();

            LoadSymbolsFromDisk(process.Options.SymbolsSearchPaths);
            ResetJustMyCodeStatus();
        }
开发者ID:BahNahNah,项目名称:dnSpy,代码行数:21,代码来源:Module.cs

示例7: RuntimeModule

        internal RuntimeModule(RuntimeAssembly assembly, ICorDebugModule comModule)
        {
            _assembly = assembly;
            _comModule = comModule;

            Symbols = _assembly.Domain.Process.Session.SymbolsServer.GetSymbolsProviderForFile(this.Name);
            if (Symbols != null)
            {
                int index = 0, max = Session.PendingBreakpoints.Count;
                Session.ProgressReporter.Report("Symbol reader present. Finding pending breakpoints to set.");
                while (index < max)
                {
                    if (TrySetBreakpoint(Session.PendingBreakpoints[index]))
                    {
                        max--;
                        Session.PendingBreakpoints.RemoveAt(index);
                    }
                    else
                    {
                        index++;
                    }
                }
            }
        }
开发者ID:die-Deutsche-Orthopaedie,项目名称:LiteDevelop,代码行数:24,代码来源:RuntimeModule.cs

示例8: CorModuleEventArgs

 void ICorDebugManagedCallback.UnloadModule(
                           ICorDebugAppDomain appDomain,
                           ICorDebugModule managedModule)
 {
     HandleEvent(ManagedCallbackType.OnModuleUnload,
                       new CorModuleEventArgs( appDomain == null ? null : new CorAppDomain(appDomain),
                                               managedModule == null ? null : new CorModule(managedModule),
                                               ManagedCallbackType.OnModuleUnload));
 }
开发者ID:fedorw,项目名称:monodevelop,代码行数:9,代码来源:Debugger.cs

示例9: TryGetValidAssembly

        public DnAssembly TryGetValidAssembly(ICorDebugAppDomain comAppDomain, ICorDebugModule comModule)
        {
            DebugVerifyThread();
            if (comModule == null)
                return null;

            var appDomain = TryGetValidAppDomain(comAppDomain);
            if (appDomain == null)
                return null;

            ICorDebugAssembly comAssembly;
            int hr = comModule.GetAssembly(out comAssembly);
            if (hr < 0)
                return null;

            return appDomain.TryGetAssembly(comAssembly);
        }
开发者ID:lovebanyi,项目名称:dnSpy,代码行数:17,代码来源:DnDebugger.cs

示例10: UnloadModule

		public void UnloadModule(ICorDebugAppDomain pAppDomain, ICorDebugModule pModule)
		{
			EnterCallback("UnloadModule", pAppDomain);
			
			Module module = process.GetModule(pModule);
			process.modules.Remove(module);
			process.OnModuleUnloaded(module);
			
			ExitCallback();
		}
开发者ID:2594636985,项目名称:SharpDevelop,代码行数:10,代码来源:ManagedCallback.cs

示例11: UpdateModuleSymbols

		public void UpdateModuleSymbols(ICorDebugAppDomain pAppDomain, ICorDebugModule pModule, IStream pSymbolStream)
		{
			EnterCallback("UpdateModuleSymbols", pAppDomain);
			
			Module module = process.GetModule(pModule);
			if (module.CorModule is ICorDebugModule3 && module.IsDynamic) {
				// In .NET 4.0, we use the LoadClass callback to load dynamic modules
				// because it always works - UpdateModuleSymbols does not.
				//  - Simple dynamic code generation seems to trigger both callbacks.
				//  - IronPython for some reason causes just the LoadClass callback
				//    so we choose to rely on it out of the two.
			} else {
				// In .NET 2.0, this is the the only method and it works fine
				module.LoadSymbolsFromMemory(pSymbolStream);
			}
			
			ExitCallback();
		}
开发者ID:2594636985,项目名称:SharpDevelop,代码行数:18,代码来源:ManagedCallback.cs

示例12: TryAdd

		internal DnModule TryAdd(ICorDebugModule comModule) {
			return modules.Add(comModule);
		}
开发者ID:arkanoid1,项目名称:dnSpy,代码行数:3,代码来源:DnAssembly.cs

示例13: DebuggerModuleLoadedEventArgs

 public DebuggerModuleLoadedEventArgs(ICorDebugModule module)
 {
     _module = module;
 }
开发者ID:anvaka,项目名称:slinject,代码行数:4,代码来源:DebuggerEventArgs.cs

示例14: GetModule

		internal Module GetModule(ICorDebugModule corModule)
		{
			foreach(Module module in this.Modules) {
				if (module.CorModule == corModule) {
					return module;
				}
			}
			throw new DebuggerException("Module is not in collection");
		}
开发者ID:asiazhang,项目名称:SharpDevelop,代码行数:9,代码来源:Process.cs

示例15: UpdateModuleSymbolsDebugCallbackEventArgs

		public UpdateModuleSymbolsDebugCallbackEventArgs(ICorDebugAppDomain pAppDomain, ICorDebugModule pModule, IStream pSymbolStream)
			: base(pAppDomain) {
			this.AppDomain = pAppDomain;
			this.Module = pModule;
			this.SymbolStream = pSymbolStream;
		}
开发者ID:nakijun,项目名称:dnSpy,代码行数:6,代码来源:DebugCallbackEventArgs.cs


注:本文中的ICorDebugModule类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。