Ejemplo n.º 1
0
        public CorActiveFunction[] GetActiveFunctions()
        {
            ICorDebugThread2 m_th2 = (ICorDebugThread2)m_th;
            UInt32           pcFunctions;

            m_th2.GetActiveFunctions(0, out pcFunctions, null);
            COR_ACTIVE_FUNCTION[] afunctions = new COR_ACTIVE_FUNCTION[pcFunctions];
            m_th2.GetActiveFunctions(pcFunctions, out pcFunctions, afunctions);
            CorActiveFunction[] caf = new CorActiveFunction[pcFunctions];
            for (int i = 0; i < pcFunctions; ++i)
            {
                caf[i] = new CorActiveFunction((int)afunctions[i].ilOffset,
                                               new CorFunction((ICorDebugFunction)afunctions[i].pFunction),
                                               afunctions[i].pModule == null?null:new CorModule(afunctions[i].pModule)
                                               );
            }
            return(caf);
        }
Ejemplo n.º 2
0
 public CorActiveFunction[] GetActiveFunctions()
 {
     ICorDebugThread2 m_th2 = (ICorDebugThread2)m_th;
     UInt32 pcFunctions;
     m_th2.GetActiveFunctions(0, out pcFunctions, null);
     COR_ACTIVE_FUNCTION[] afunctions = new COR_ACTIVE_FUNCTION[pcFunctions];
     m_th2.GetActiveFunctions(pcFunctions, out pcFunctions, afunctions);
     CorActiveFunction[] caf = new CorActiveFunction[pcFunctions];
     for (int i = 0; i < pcFunctions; ++i)
     {
         caf[i] = new CorActiveFunction((int)afunctions[i].ilOffset,
                                        new CorFunction((ICorDebugFunction)afunctions[i].pFunction),
                                        afunctions[i].pModule == null ? null : new CorModule(afunctions[i].pModule)
                                        );
     }
     return caf;
 }