internal MDbgThread(MDbgThreadCollection threadCollection, CorThread thread, int threadNumber) { m_corThread = thread; m_threadNumber = threadNumber; m_threadMgr = threadCollection; }
// Do common initiliazation and add to the process collection. void CommonInit(MDbgEngine engine) { Debug.Assert(engine != null); if (engine == null) throw new ArgumentException("Value cannot be null.", "engine"); m_engine = engine; m_threadMgr = new MDbgThreadCollection(this); m_appDomainMgr = new MDbgAppDomainCollection(this); m_moduleMgr = new MDbgModuleCollection(this); m_breakpointMgr = new MDbgBreakpointCollection(this); m_debuggerVarMgr = new MDbgDebuggerVarCollection(this); // we'll register as last code, so that other fields are already registered. m_number = engine.Processes.RegisterProcess(this); }