Esempio n. 1
0
        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();
            }
        }
Esempio n. 2
0
        private void VirtualMachine_Started(object sender, EventArgs e)
        {
            vmRunning = true;
            OnUpdateControls();

            LoadGDB();
            OnClear();
            DebuggerWorker.RunWorkerAsync();
        }
Esempio n. 3
0
        private void RestartVMButton_Click(object sender, EventArgs e)
        {
            restartingVM = true;

            if (!Gdb.Running)
            {
                Gdb.Dispose();
            }

            DebuggerWorker.CancelAsync();
            VirtualMachine.Restart();

            restartingVM = false;
        }