Exemplo n.º 1
0
        int ICorDebug.GetProcess(uint dwProcessId, out ICorDebugProcess ppProcess)
        {
            ppProcess = null;

            foreach (CorDebugProcess process in _processes)
            {
                uint id = process.PhysicalProcessId.dwProcessId;

                if (dwProcessId == id)
                {
                    ppProcess = process;
                    break;
                }
            }

            return(COM_HResults.BOOL_TO_HRESULT_FAIL(ppProcess != null));  /*better failure?*/
        }
            new public int AddPort(IDebugPortRequest2 pRequest, out IDebugPort2 ppPort)
            {
                string name;

                pRequest.GetPortName(out name);
                ppPort = FindPort(name);

                if (ppPort == null)
                {
                    DebugPort port = _ports[(int)PortFilter.TcpIp];
                    //hack, hack.  Abusing the Attach to dialog box to force the NetworkDevice port to
                    //look for a nanoCLR process
                    if (port.TryAddProcess(name) != null)
                    {
                        ppPort = port;
                    }
                }

                return(COM_HResults.BOOL_TO_HRESULT_FAIL(ppPort != null));
            }
Exemplo n.º 3
0
        int Microsoft.VisualStudio.Debugger.Interop.IDebugPort2.GetProcess(AD_PROCESS_ID ProcessId, out IDebugProcess2 ppProcess)
        {
            ppProcess = ((DebugPort)this).GetProcess(ProcessId);

            return(COM_HResults.BOOL_TO_HRESULT_FAIL(ppProcess != null));
        }
Exemplo n.º 4
0
        int ICorDebugThread.GetCurrentException(out ICorDebugValue ppExceptionObject)
        {
            ppExceptionObject = this.GetLastCorDebugThread()._currentException;

            return(COM_HResults.BOOL_TO_HRESULT_FALSE(ppExceptionObject != null));
        }