diff options
Diffstat (limited to 'main/src/addins/MonoDevelop.Debugger.Soft')
2 files changed, 7 insertions, 7 deletions
diff --git a/main/src/addins/MonoDevelop.Debugger.Soft/MonoDevelop.Debugger.Soft/CustomSoftDebuggerEngine.cs b/main/src/addins/MonoDevelop.Debugger.Soft/MonoDevelop.Debugger.Soft/CustomSoftDebuggerEngine.cs index ca3f329233..134809e69f 100644 --- a/main/src/addins/MonoDevelop.Debugger.Soft/MonoDevelop.Debugger.Soft/CustomSoftDebuggerEngine.cs +++ b/main/src/addins/MonoDevelop.Debugger.Soft/MonoDevelop.Debugger.Soft/CustomSoftDebuggerEngine.cs @@ -98,7 +98,7 @@ namespace MonoDevelop.Debugger.Soft class CustomSoftDebuggerSession : SoftDebuggerSession { - IProcessAsyncOperation process; + ProcessAsyncOperation process; bool usingExternalConsole; protected override void OnRun (DebuggerStartInfo startInfo) @@ -138,7 +138,7 @@ namespace MonoDevelop.Debugger.Soft foreach (KeyValuePair<string,string> kvp in info.EnvironmentVariables) psi.EnvironmentVariables [kvp.Key] = kvp.Value; - process = Runtime.ProcessService.StartProcess (psi, ProcessOutput, ProcessError, null); + process = Runtime.ProcessService.StartProcess (psi, ProcessOutput, ProcessError, null).ProcessAsyncOperation; } } diff --git a/main/src/addins/MonoDevelop.Debugger.Soft/MonoDevelop.Debugger.Soft/SoftDebuggerEngine.cs b/main/src/addins/MonoDevelop.Debugger.Soft/MonoDevelop.Debugger.Soft/SoftDebuggerEngine.cs index f04bc311f4..190ab55c6a 100644 --- a/main/src/addins/MonoDevelop.Debugger.Soft/MonoDevelop.Debugger.Soft/SoftDebuggerEngine.cs +++ b/main/src/addins/MonoDevelop.Debugger.Soft/MonoDevelop.Debugger.Soft/SoftDebuggerEngine.cs @@ -86,7 +86,7 @@ namespace MonoDevelop.Debugger.Soft var varsCopy = new Dictionary<string, string> (cmd.EnvironmentVariables); var startArgs = (SoftDebuggerLaunchArgs) dsi.StartArgs; startArgs.ExternalConsoleLauncher = delegate (System.Diagnostics.ProcessStartInfo info) { - IProcessAsyncOperation oper; + ProcessAsyncOperation oper; oper = Runtime.ProcessService.StartConsoleProcess (info.FileName, info.Arguments, info.WorkingDirectory, varsCopy, ExternalConsoleFactory.Instance.CreateConsole (dsi.CloseExternalConsoleOnExit), null); return new ProcessAdapter (oper, Path.GetFileName (info.FileName)); @@ -158,17 +158,17 @@ namespace MonoDevelop.Debugger.Soft class ProcessAdapter: Mono.Debugger.Soft.ITargetProcess { - IProcessAsyncOperation oper; + ProcessAsyncOperation oper; string name; - public ProcessAdapter (IProcessAsyncOperation oper, string name) + public ProcessAdapter (ProcessAsyncOperation oper, string name) { this.oper = oper; this.name = name; - oper.Completed += delegate { + oper.Task.ContinueWith (t => { if (Exited != null) Exited (this, EventArgs.Empty); - }; + }); } #region IProcess implementation |