Beispiel #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);
            }
        }
Beispiel #2
0
        public void UnloadClass(ICorDebugAppDomain pAppDomain, ICorDebugClass c)
        {
            ManagedCallback managedCallback = GetProcessCallbackInterface("UnloadClass", pAppDomain);

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

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

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

            if (managedCallback != null)
            {
                managedCallback.CreateConnection(pProcess, dwConnectionId, pConnName);
            }
        }
Beispiel #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);
            }
        }
Beispiel #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);
            }
        }
Beispiel #8
0
        public void ExitThread(ICorDebugAppDomain pAppDomain, ICorDebugThread pThread)
        {
            ManagedCallback managedCallback = GetProcessCallbackInterface("ExitThread", pAppDomain);

            if (managedCallback != null)
            {
                managedCallback.ExitThread(pAppDomain, pThread);
            }
        }
Beispiel #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);
            }
        }
Beispiel #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);
            }
        }
Beispiel #11
0
        public void ControlCTrap(ICorDebugProcess pProcess)
        {
            ManagedCallback managedCallback = GetProcessCallbackInterface("ControlCTrap", pProcess);

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

            if (managedCallback != null)
            {
                managedCallback.Break(pAppDomain, pThread);
            }
        }
Beispiel #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);
            }
        }
Beispiel #14
0
        public void UnloadModule(ICorDebugAppDomain pAppDomain, ICorDebugModule pModule)
        {
            ManagedCallback managedCallback = GetProcessCallbackInterface("UnloadModule", pAppDomain);

            if (managedCallback != null)
            {
                managedCallback.UnloadModule(pAppDomain, pModule);
            }
        }
Beispiel #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);
            }
        }
Beispiel #16
0
        public void UnloadAssembly(ICorDebugAppDomain pAppDomain, ICorDebugAssembly pAssembly)
        {
            ManagedCallback managedCallback = GetProcessCallbackInterface("UnloadAssembly", pAppDomain);

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

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

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

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

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

            if (managedCallback != null)
            {
                managedCallback.UpdateModuleSymbols(pAppDomain, pModule, pSymbolStream);
            }
        }
Beispiel #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);
            }
        }
Beispiel #23
0
        public void CreateProcess(ICorDebugProcess pProcess)
        {
            ManagedCallback managedCallback = GetProcessCallbackInterface("CreateProcess", pProcess);

            if (managedCallback != null)
            {
                managedCallback.CreateProcess(pProcess);
            }
        }
Beispiel #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);
            }
        }
Beispiel #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);
            }
        }
Beispiel #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);
        }
Beispiel #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);
            }
        }