private void Continue() { if (GDBConnector == null) { return; } if (GDBConnector.IsRunning) { return; } MemoryCache.Clear(); if (MainForm.BreakPoints.Count != 0) { GDBConnector.ClearAllBreakPoints(); GDBConnector.Step(true); while (GDBConnector.IsRunning) { Thread.Sleep(10); } MainForm.ResendBreakPoints(); } GDBConnector.Continue(); }
private void btnStart_Click(object sender, EventArgs e) { if (GDBConnector == null) { return; } if (GDBConnector.IsRunning) { return; } MemoryCache.Clear(); if (MainForm.BreakPoints.Count != 0) { GDBConnector.ClearAllBreakPoints(); GDBConnector.Step(true); // TODO: Add timeout while (GDBConnector.IsRunning) { Thread.Sleep(1); } MainForm.ResendBreakPoints(); } GDBConnector.Continue(); }