コード例 #1
0
ファイル: SSHConnection.cs プロジェクト: Trass3r/MIEngine
 public string AttachToProcess(int pid, string preAttachCommand)
 {
     var gdbStart = new liblinux.Services.GdbServerStartInfo();
     gdbStart.ProcessId = pid;   // indicates an attach operation
     gdbStart.PreLaunchCommand = preAttachCommand;
     _gdbserver = _remoteSystem.Services.GdbServer.Start(gdbStart); // throws on failure
     return "localhost:" + _gdbserver.StartInfo.LocalPort.ToString(CultureInfo.InvariantCulture);
 }
コード例 #2
0
ファイル: Connection.cs プロジェクト: teijyou/MIEngine
 internal void Clean()
 {
     if (_gdbserver != null)
     {
         _gdbserver.Stop();
         _gdbserver = null;
     }
     if (_remoteSystem != null)
     {
         _remoteSystem.Dispose();
         _remoteSystem = null;
     }
 }
コード例 #3
0
ファイル: SSHConnection.cs プロジェクト: tomhughes/MIEngine
        public override void Close()
        {
            if (_gdbserver != null)
            {
                _gdbserver.Stop();
                _gdbserver = null;
            }

            if (_remoteSystem != null)
            {
                _remoteSystem.Dispose();
                _remoteSystem = null;
            }
        }