debugger: Run button.

This commit is contained in:
feos 2016-02-24 22:17:48 +03:00
parent f9c9994161
commit 8239c39213
2 changed files with 27 additions and 8 deletions

View File

@ -58,6 +58,7 @@
this.SeekToBtn = new System.Windows.Forms.Button();
this.SeekToBox = new BizHawk.Client.EmuHawk.HexTextBox();
this.CancelSeekBtn = new System.Windows.Forms.Button();
this.RunBtn = new System.Windows.Forms.Button();
this.menuStrip1.SuspendLayout();
this.RegistersGroupBox.SuspendLayout();
this.BreakpointsGroupBox.SuspendLayout();
@ -89,7 +90,7 @@
//
this.ExitMenuItem.Name = "ExitMenuItem";
this.ExitMenuItem.ShortcutKeyDisplayString = "Alt+F4";
this.ExitMenuItem.Size = new System.Drawing.Size(140, 22);
this.ExitMenuItem.Size = new System.Drawing.Size(151, 22);
this.ExitMenuItem.Text = "&Close";
this.ExitMenuItem.Click += new System.EventHandler(this.ExitMenuItem_Click);
//
@ -111,7 +112,7 @@
this.StepIntoMenuItem.Enabled = false;
this.StepIntoMenuItem.Name = "StepIntoMenuItem";
this.StepIntoMenuItem.ShortcutKeyDisplayString = "F11";
this.StepIntoMenuItem.Size = new System.Drawing.Size(172, 22);
this.StepIntoMenuItem.Size = new System.Drawing.Size(183, 22);
this.StepIntoMenuItem.Text = "Step &Into";
this.StepIntoMenuItem.Click += new System.EventHandler(this.StepIntoMenuItem_Click);
//
@ -120,7 +121,7 @@
this.StepOverMenuItem.Enabled = false;
this.StepOverMenuItem.Name = "StepOverMenuItem";
this.StepOverMenuItem.ShortcutKeyDisplayString = "F10";
this.StepOverMenuItem.Size = new System.Drawing.Size(172, 22);
this.StepOverMenuItem.Size = new System.Drawing.Size(183, 22);
this.StepOverMenuItem.Text = "Step O&ver";
this.StepOverMenuItem.Click += new System.EventHandler(this.StepOverMenuItem_Click);
//
@ -129,20 +130,20 @@
this.StepOutMenuItem.Enabled = false;
this.StepOutMenuItem.Name = "StepOutMenuItem";
this.StepOutMenuItem.ShortcutKeyDisplayString = "Shift+F11";
this.StepOutMenuItem.Size = new System.Drawing.Size(172, 22);
this.StepOutMenuItem.Size = new System.Drawing.Size(183, 22);
this.StepOutMenuItem.Text = "Step Ou&t";
this.StepOutMenuItem.Click += new System.EventHandler(this.StepOutMenuItem_Click);
//
// toolStripSeparator1
//
this.toolStripSeparator1.Name = "toolStripSeparator1";
this.toolStripSeparator1.Size = new System.Drawing.Size(169, 6);
this.toolStripSeparator1.Size = new System.Drawing.Size(180, 6);
//
// RefreshMenuItem
//
this.RefreshMenuItem.Name = "RefreshMenuItem";
this.RefreshMenuItem.ShortcutKeys = System.Windows.Forms.Keys.F5;
this.RefreshMenuItem.Size = new System.Drawing.Size(172, 22);
this.RefreshMenuItem.Size = new System.Drawing.Size(183, 22);
this.RefreshMenuItem.Text = "Refresh";
this.RefreshMenuItem.Click += new System.EventHandler(this.RefreshMenuItem_Click);
//
@ -346,19 +347,31 @@
// CancelSeekBtn
//
this.CancelSeekBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.CancelSeekBtn.Location = new System.Drawing.Point(699, 323);
this.CancelSeekBtn.Location = new System.Drawing.Point(680, 323);
this.CancelSeekBtn.Name = "CancelSeekBtn";
this.CancelSeekBtn.Size = new System.Drawing.Size(56, 23);
this.CancelSeekBtn.Size = new System.Drawing.Size(75, 23);
this.CancelSeekBtn.TabIndex = 15;
this.CancelSeekBtn.Text = "Cancel";
this.CancelSeekBtn.UseVisualStyleBackColor = true;
this.CancelSeekBtn.Click += new System.EventHandler(this.CancelSeekBtn_Click);
//
// RunBtn
//
this.RunBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.RunBtn.Location = new System.Drawing.Point(680, 432);
this.RunBtn.Name = "RunBtn";
this.RunBtn.Size = new System.Drawing.Size(75, 23);
this.RunBtn.TabIndex = 16;
this.RunBtn.Text = "Run";
this.RunBtn.UseVisualStyleBackColor = true;
this.RunBtn.Click += new System.EventHandler(this.RunBtn_Click);
//
// GenericDebugger
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(767, 560);
this.Controls.Add(this.RunBtn);
this.Controls.Add(this.CancelSeekBtn);
this.Controls.Add(this.SeekToBox);
this.Controls.Add(this.SeekToBtn);
@ -418,5 +431,6 @@
private System.Windows.Forms.ToolStripMenuItem RefreshMenuItem;
private System.Windows.Forms.ContextMenuStrip DisassemblerContextMenu;
private System.Windows.Forms.ToolStripMenuItem AddBreakpointContextMenuItem;
private System.Windows.Forms.Button RunBtn;
}
}

View File

@ -190,6 +190,11 @@ namespace BizHawk.Client.EmuHawk
}
private void RunBtn_Click(object sender, EventArgs e)
{
GlobalWin.MainForm.UnpauseEmulator();
}
private void StepIntoMenuItem_Click(object sender, EventArgs e)
{
if (CanStepInto)