public static uint ClassMemberIndexFromTinyCLRToken(uint token, CorDebugAssembly assembly) { uint idx = TinyCLR_TypeSystem.CLR_DataFromTk(token); return(TinyCLR_TypeSystem.IndexFromIdxAssemblyIdx(assembly.Idx, idx)); }
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; } } } } } }
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); }