private void VirtualMachine_Stopped(object sender, EventArgs e) { vmRunning = false; OnUpdateControls(); DebuggerWorker.CancelAsync(); try { SerialStream.Close(); } catch { } try { if (Gdb != null) { Gdb.Dispose(); } } finally { Gdb = null; } if (restartingVM) { return; } if (Bootstrap.Parameters.ContainsKey("start")) { Application.Exit(); } }
private void VirtualMachine_Started(object sender, EventArgs e) { vmRunning = true; OnUpdateControls(); LoadGDB(); OnClear(); DebuggerWorker.RunWorkerAsync(); }
private void RestartVMButton_Click(object sender, EventArgs e) { restartingVM = true; if (!Gdb.Running) { Gdb.Dispose(); } DebuggerWorker.CancelAsync(); VirtualMachine.Restart(); restartingVM = false; }