Ejemplo n.º 1
0
        public void UpdateModuleSymbols(ICorDebugAppDomain pAppDomain, ICorDebugModule pModule, IStream pSymbolStream)
        {
            EnterCallback(PausedReason.Other, "UpdateModuleSymbols", pAppDomain);

            Module module = process.Modules[pModule];

            if (module.CorModule is ICorDebugModule3 && module.IsDynamic)
            {
                // In .NET 4.0, we use the LoadClass callback to load dynamic modules
                // because it always works - UpdateModuleSymbols does not.
                //  - Simple dynamic code generation seems to trigger both callbacks.
                //  - IronPython for some reason causes just the LoadClass callback
                //    so we choose to rely on it out of the two.
            }
            else
            {
                // In .NET 2.0, this is the the only method and it works fine
                module.LoadSymbolsFromMemory(pSymbolStream);
            }

            ExitCallback();
        }