Beispiel #1
0
 /// <summary>
 /// Add a port.
 /// </summary>
 public int AddPort(IDebugPortRequest2 pRequest, out IDebugPort2 ppPort)
 {
     DLog.Debug(DContext.VSDebuggerComCall, "DebugPortSupplier.AddPort");
     string name;
     ErrorHandler.ThrowOnFailure(pRequest.GetPortName(out name));
     var port = new DebugPort(this, pRequest);
     ports[name] = port;
     ppPort = port;
     return VSConstants.S_OK;
 }
Beispiel #2
0
        /// <summary>
        /// Add a port.
        /// </summary>
        public int AddPort(IDebugPortRequest2 pRequest, out IDebugPort2 ppPort)
        {
            DLog.Debug(DContext.VSDebuggerComCall, "DebugPortSupplier.AddPort");
            string name;

            ErrorHandler.ThrowOnFailure(pRequest.GetPortName(out name));
            var port = new DebugPort(this, pRequest);

            ports[name] = port;
            ppPort      = port;
            return(VSConstants.S_OK);
        }
Beispiel #3
0
 /// <summary>
 /// Default ctor
 /// </summary>
 internal DebugProcess(DebugEngine engine, DebugPort port, DebuggerLib.Debugger debugger, int processId, Guid guid, string apkPath, MapFile mapFile, EngineEventCallback eventCallback)
 {
     this.engine = engine;
     this.port = port;
     this.debugger = debugger;
     this.processId = processId;
     this.guid = guid;
     this.apkPath = apkPath;
     this.eventCallback = eventCallback;
     creationDate = DateTime.Now;
     program = new DebugProgram(this, debugger, apkPath, mapFile, eventCallback);
     program.Terminated += OnProgramTerminated;
 }
Beispiel #4
0
 /// <summary>
 /// Default ctor
 /// </summary>
 internal DebugProcess(DebugEngine engine, DebugPort port, DebuggerLib.Debugger debugger, int processId, Guid guid, string apkPath, MapFile mapFile, EngineEventCallback eventCallback)
 {
     this.engine         = engine;
     this.port           = port;
     this.debugger       = debugger;
     this.processId      = processId;
     this.guid           = guid;
     this.apkPath        = apkPath;
     this.eventCallback  = eventCallback;
     creationDate        = DateTime.Now;
     program             = new DebugProgram(this, debugger, apkPath, mapFile, eventCallback);
     program.Terminated += OnProgramTerminated;
 }