Esempio n. 1
0
        // Do not pass the pBreakpoint parameter as ICorDebugBreakpoint - marshaling of it fails in .NET 1.1
        public void Breakpoint(ICorDebugAppDomain pAppDomain, ICorDebugThread pThread, ICorDebugBreakpoint pBreakpoint)
        {
            ManagedCallback managedCallback = GetProcessCallbackInterface("Breakpoint", pAppDomain);

            if (managedCallback != null)
            {
                managedCallback.Breakpoint(pAppDomain, pThread, pBreakpoint);
            }
        }
Esempio n. 2
0
        public void UnloadClass(ICorDebugAppDomain pAppDomain, ICorDebugClass c)
        {
            ManagedCallback managedCallback = GetProcessCallbackInterface("UnloadClass", pAppDomain);

            if (managedCallback != null)
            {
                managedCallback.UnloadClass(pAppDomain, c);
            }
        }
Esempio n. 3
0
        public void FunctionRemapComplete(ICorDebugAppDomain pAppDomain, ICorDebugThread pThread, ICorDebugFunction pFunction)
        {
            ManagedCallback managedCallback = GetProcessCallbackInterface("FunctionRemapComplete", pAppDomain);

            if (managedCallback != null)
            {
                managedCallback.FunctionRemapComplete(pAppDomain, pThread, pFunction);
            }
        }
Esempio n. 4
0
        public void MDANotification(ICorDebugController c, ICorDebugThread t, ICorDebugMDA mda)
        {
            ManagedCallback managedCallback = GetProcessCallbackInterface("MDANotification", c);

            if (managedCallback != null)
            {
                managedCallback.MDANotification(c, t, mda);
            }
        }
Esempio n. 5
0
        public void CreateConnection(ICorDebugProcess pProcess, uint dwConnectionId, IntPtr pConnName)
        {
            ManagedCallback managedCallback = GetProcessCallbackInterface("CreateConnection", pProcess);

            if (managedCallback != null)
            {
                managedCallback.CreateConnection(pProcess, dwConnectionId, pConnName);
            }
        }
Esempio n. 6
0
        public void Exception2(ICorDebugAppDomain pAppDomain, ICorDebugThread pThread, ICorDebugFrame pFrame, uint nOffset, CorDebugExceptionCallbackType exceptionType, uint dwFlags)
        {
            ManagedCallback managedCallback = GetProcessCallbackInterface("Exception2", pAppDomain);

            if (managedCallback != null)
            {
                managedCallback.Exception2(pAppDomain, pThread, pFrame, nOffset, exceptionType, dwFlags);
            }
        }
Esempio n. 7
0
        public void LogMessage(ICorDebugAppDomain pAppDomain, ICorDebugThread pThread, int lLevel, string pLogSwitchName, string pMessage)
        {
            ManagedCallback managedCallback = GetProcessCallbackInterface("LogMessage", pAppDomain);

            if (managedCallback != null)
            {
                managedCallback.LogMessage(pAppDomain, pThread, lLevel, pLogSwitchName, pMessage);
            }
        }
Esempio n. 8
0
        public void ExitThread(ICorDebugAppDomain pAppDomain, ICorDebugThread pThread)
        {
            ManagedCallback managedCallback = GetProcessCallbackInterface("ExitThread", pAppDomain);

            if (managedCallback != null)
            {
                managedCallback.ExitThread(pAppDomain, pThread);
            }
        }
Esempio n. 9
0
        public unsafe void Exception(ICorDebugAppDomain pAppDomain, ICorDebugThread pThread, int unhandled)
        {
            ManagedCallback managedCallback = GetProcessCallbackInterface("Exception", pAppDomain);

            if (managedCallback != null)
            {
                managedCallback.Exception(pAppDomain, pThread, unhandled);
            }
        }
Esempio n. 10
0
        public void LogSwitch(ICorDebugAppDomain pAppDomain, ICorDebugThread pThread, int lLevel, uint ulReason, string pLogSwitchName, string pParentName)
        {
            ManagedCallback managedCallback = GetProcessCallbackInterface("LogSwitch", pAppDomain);

            if (managedCallback != null)
            {
                managedCallback.LogSwitch(pAppDomain, pThread, lLevel, ulReason, pLogSwitchName, pParentName);
            }
        }
Esempio n. 11
0
        public void ControlCTrap(ICorDebugProcess pProcess)
        {
            ManagedCallback managedCallback = GetProcessCallbackInterface("ControlCTrap", pProcess);

            if (managedCallback != null)
            {
                managedCallback.ControlCTrap(pProcess);
            }
        }
Esempio n. 12
0
        public unsafe void Break(ICorDebugAppDomain pAppDomain, ICorDebugThread pThread)
        {
            ManagedCallback managedCallback = GetProcessCallbackInterface("Break", pAppDomain);

            if (managedCallback != null)
            {
                managedCallback.Break(pAppDomain, pThread);
            }
        }
Esempio n. 13
0
        public void BreakpointSetError(ICorDebugAppDomain pAppDomain, ICorDebugThread pThread, ICorDebugBreakpoint pBreakpoint, uint dwError)
        {
            ManagedCallback managedCallback = GetProcessCallbackInterface("BreakpointSetError", pAppDomain);

            if (managedCallback != null)
            {
                managedCallback.BreakpointSetError(pAppDomain, pThread, pBreakpoint, dwError);
            }
        }
Esempio n. 14
0
        public void UnloadModule(ICorDebugAppDomain pAppDomain, ICorDebugModule pModule)
        {
            ManagedCallback managedCallback = GetProcessCallbackInterface("UnloadModule", pAppDomain);

            if (managedCallback != null)
            {
                managedCallback.UnloadModule(pAppDomain, pModule);
            }
        }
Esempio n. 15
0
        public void EditAndContinueRemap(ICorDebugAppDomain pAppDomain, ICorDebugThread pThread, ICorDebugFunction pFunction, int fAccurate)
        {
            ManagedCallback managedCallback = GetProcessCallbackInterface("EditAndContinueRemap", pAppDomain);

            if (managedCallback != null)
            {
                managedCallback.EditAndContinueRemap(pAppDomain, pThread, pFunction, fAccurate);
            }
        }
Esempio n. 16
0
        public void UnloadAssembly(ICorDebugAppDomain pAppDomain, ICorDebugAssembly pAssembly)
        {
            ManagedCallback managedCallback = GetProcessCallbackInterface("UnloadAssembly", pAppDomain);

            if (managedCallback != null)
            {
                managedCallback.UnloadAssembly(pAppDomain, pAssembly);
            }
        }
Esempio n. 17
0
        public void EvalComplete(ICorDebugAppDomain pAppDomain, ICorDebugThread pThread, ICorDebugEval corEval)
        {
            ManagedCallback managedCallback = GetProcessCallbackInterface("EvalComplete", pAppDomain);

            if (managedCallback != null)
            {
                managedCallback.EvalComplete(pAppDomain, pThread, corEval);
            }
        }
Esempio n. 18
0
        public void ExitAppDomain(ICorDebugProcess pProcess, ICorDebugAppDomain pAppDomain)
        {
            ManagedCallback managedCallback = GetProcessCallbackInterface("ExitAppDomain", pProcess);

            if (managedCallback != null)
            {
                managedCallback.ExitAppDomain(pProcess, pAppDomain);
            }
        }
Esempio n. 19
0
        public void DebuggerError(ICorDebugProcess pProcess, int errorHR, uint errorCode)
        {
            ManagedCallback managedCallback = GetProcessCallbackInterface("DebuggerError", pProcess);

            if (managedCallback != null)
            {
                managedCallback.DebuggerError(pProcess, errorHR, errorCode);
            }
        }
Esempio n. 20
0
        public void DestroyConnection(ICorDebugProcess pProcess, uint dwConnectionId)
        {
            ManagedCallback managedCallback = GetProcessCallbackInterface("DestroyConnection", pProcess);

            if (managedCallback != null)
            {
                managedCallback.DestroyConnection(pProcess, dwConnectionId);
            }
        }
Esempio n. 21
0
        public void UpdateModuleSymbols(ICorDebugAppDomain pAppDomain, ICorDebugModule pModule, IStream pSymbolStream)
        {
            ManagedCallback managedCallback = GetProcessCallbackInterface("UpdateModuleSymbols", pAppDomain);

            if (managedCallback != null)
            {
                managedCallback.UpdateModuleSymbols(pAppDomain, pModule, pSymbolStream);
            }
        }
Esempio n. 22
0
        public void ExceptionUnwind(ICorDebugAppDomain pAppDomain, ICorDebugThread pThread, CorDebugExceptionUnwindCallbackType dwEventType, uint dwFlags)
        {
            ManagedCallback managedCallback = GetProcessCallbackInterface("ExceptionUnwind", pAppDomain);

            if (managedCallback != null)
            {
                managedCallback.ExceptionUnwind(pAppDomain, pThread, dwEventType, dwFlags);
            }
        }
Esempio n. 23
0
        public void CreateProcess(ICorDebugProcess pProcess)
        {
            ManagedCallback managedCallback = GetProcessCallbackInterface("CreateProcess", pProcess);

            if (managedCallback != null)
            {
                managedCallback.CreateProcess(pProcess);
            }
        }
Esempio n. 24
0
        public void FunctionRemapOpportunity(ICorDebugAppDomain pAppDomain, ICorDebugThread pThread, ICorDebugFunction pOldFunction, ICorDebugFunction pNewFunction, uint oldILOffset)
        {
            ManagedCallback managedCallback = GetProcessCallbackInterface("FunctionRemapOpportunity", pAppDomain);

            if (managedCallback != null)
            {
                managedCallback.FunctionRemapOpportunity(pAppDomain, pThread, pOldFunction, pNewFunction, oldILOffset);
            }
        }
Esempio n. 25
0
        public void StepComplete(ICorDebugAppDomain pAppDomain, ICorDebugThread pThread, ICorDebugStepper pStepper, CorDebugStepReason reason)
        {
            ManagedCallback managedCallback = GetProcessCallbackInterface("StepComplete", pAppDomain);

            if (managedCallback != null)
            {
                managedCallback.StepComplete(pAppDomain, pThread, pStepper, reason);
            }
        }
Esempio n. 26
0
        internal Process(NDebugger debugger, ICorDebugProcess corProcess, string workingDirectory)
        {
            this.debugger         = debugger;
            this.corProcess       = corProcess;
            this.workingDirectory = workingDirectory;

            this.callbackInterface = new ManagedCallback(this);

            activeEvals = new EvalCollection(debugger);
            modules     = new ModuleCollection(debugger);
            threads     = new ThreadCollection(debugger);
            appDomains  = new AppDomainCollection(debugger);
        }
Esempio n. 27
0
        public void NameChange(ICorDebugAppDomain pAppDomain, ICorDebugThread pThread)
        {
            ManagedCallback managedCallback = null;

            if (pAppDomain != null)
            {
                managedCallback = GetProcessCallbackInterface("NameChange", pAppDomain);
            }
            if (pThread != null)
            {
                managedCallback = GetProcessCallbackInterface("NameChange", pThread);
            }
            if (managedCallback != null)
            {
                managedCallback.NameChange(pAppDomain, pThread);
            }
        }