Exemplo n.º 1
0
        public static uint ClassMemberIndexFromTinyCLRToken(uint token, CorDebugAssembly assembly)
        {
            uint idx = TinyCLR_TypeSystem.CLR_DataFromTk(token);

            return(TinyCLR_TypeSystem.IndexFromIdxAssemblyIdx(assembly.Idx, idx));
        }
Exemplo n.º 2
0
 public void SetJmcStatus(bool fJMC)
 {
     if (this.HasSymbols)
     {
         if (this.Process.Engine.Info_SetJMC(fJMC, ReflectionDefinition.Kind.REFLECTION_ASSEMBLY, TinyCLR_TypeSystem.IndexFromIdxAssemblyIdx(this.Idx)))
         {
             if (!this.m_isFrameworkAssembly)
             {
                 //now update the debugger JMC state...
                 foreach (Pdbx.Class c in this.m_pdbxAssembly.Classes)
                 {
                     foreach (Pdbx.Method m in c.Methods)
                     {
                         m.IsJMC = fJMC;
                     }
                 }
             }
         }
     }
 }
Exemplo n.º 3
0
        int ICorDebugModule2.SetJMCStatus(int bIsJustMyCode, uint cTokens, ref uint pTokens)
        {
            Debug.Assert(cTokens == 0);

            bool fJMC = Utility.Boolean.IntToBool(bIsJustMyCode);

            int hres = fJMC ? Utility.COM_HResults.E_FAIL : Utility.COM_HResults.S_OK;

            Debug.Assert(Utility.FImplies(fJMC, this.HasSymbols));

            if (this.HasSymbols)
            {
                if (this.Process.Engine.Info_SetJMC(fJMC, ReflectionDefinition.Kind.REFLECTION_ASSEMBLY, TinyCLR_TypeSystem.IndexFromIdxAssemblyIdx(this.Idx)))
                {
                    if (!this.m_isFrameworkAssembly)
                    {
                        //now update the debugger JMC state...
                        foreach (Pdbx.Class c in this.m_pdbxAssembly.Classes)
                        {
                            foreach (Pdbx.Method m in c.Methods)
                            {
                                m.IsJMC = fJMC;
                            }
                        }
                    }
                    hres = Utility.COM_HResults.S_OK;
                }
            }

            return(hres);
        }