コード例 #1
0
 internal MDbgModule(MDbgProcess process, CorDebug.CorModule managedModule, int number)
 {
     Debug.Assert(process != null && managedModule != null);
     m_process   = process;
     m_module    = managedModule;
     m_functions = new MDbgFunctionMgr(this);
     m_number    = number;
 }
コード例 #2
0
        /// <summary>
        /// Releases all resources used by the MDbgModule.
        /// </summary>
        public void Dispose()
        {
            // Our funtion list may hold onto unmanaged SymbolMethod objects, so dispose that too.
            m_functions.Dispose();
            m_functions = null;

            // Release unmanaged resources.
            m_symReader = null;
            m_module    = null;
            m_importer  = null;
        }
コード例 #3
0
        internal MDbgModule Register(CorDebug.CorModule managedModule)
        {
            MDbgModule mdbgModule;

            if (m_items.ContainsKey(managedModule))
            {
                mdbgModule = (MDbgModule)m_items[managedModule];
                return(mdbgModule);
            }

            mdbgModule = new MDbgModule(m_process, managedModule, m_freeModuleNumber++);
            m_items.Add(managedModule, mdbgModule);
            return(mdbgModule);
        }
コード例 #4
0
ファイル: Module.cs プロジェクト: pusp/o2platform
        /// <summary>
        /// Releases all resources used by the MDbgModule.
        /// </summary>
        public void Dispose()
        {
            // Our funtion list may hold onto unmanaged SymbolMethod objects, so dispose that too.
            m_functions.Dispose();
            m_functions = null;

            // Release unmanaged resources.
            m_symReader = null;
            m_module = null;
            m_importer = null;
        }
コード例 #5
0
ファイル: Module.cs プロジェクト: pusp/o2platform
 internal MDbgModule(MDbgProcess process, CorDebug.CorModule managedModule, int number)
 {
     Debug.Assert(process != null && managedModule != null);
     m_process = process;
     m_module = managedModule;
     m_functions = new MDbgFunctionMgr(this);
     m_number = number;
 }
コード例 #6
0
 internal void Unregister(CorDebug.CorModule managedModule)
 {
     Debug.Assert(m_items.ContainsKey(managedModule));
     m_items.Remove(managedModule);
 }
コード例 #7
0
 /// <summary>
 /// Looks up a CorModule.
 /// </summary>
 /// <param name="managedModule">Which CorModule to lookup.</param>
 /// <returns>The coresponding MDbgModule.</returns>
 public MDbgModule Lookup(CorDebug.CorModule managedModule)
 {
     return((MDbgModule)m_items[managedModule]);
 }