mirror of https://github.com/PCSX2/pcsx2.git
Debugger: Add Reset button
Add a handy 'Reset' button next to the 'Run' button
This commit is contained in:
parent
65748351c7
commit
bf674d301c
|
@ -27,6 +27,7 @@ DebuggerWindow::DebuggerWindow(QWidget* parent)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
connect(m_ui.actionRun, &QAction::triggered, this, &DebuggerWindow::onRunPause);
|
connect(m_ui.actionRun, &QAction::triggered, this, &DebuggerWindow::onRunPause);
|
||||||
|
connect(m_ui.actionReset, &QAction::triggered, this, &DebuggerWindow::onReset);
|
||||||
connect(m_ui.actionStepInto, &QAction::triggered, this, &DebuggerWindow::onStepInto);
|
connect(m_ui.actionStepInto, &QAction::triggered, this, &DebuggerWindow::onStepInto);
|
||||||
connect(m_ui.actionStepOver, &QAction::triggered, this, &DebuggerWindow::onStepOver);
|
connect(m_ui.actionStepOver, &QAction::triggered, this, &DebuggerWindow::onStepOver);
|
||||||
connect(m_ui.actionStepOut, &QAction::triggered, this, &DebuggerWindow::onStepOut);
|
connect(m_ui.actionStepOut, &QAction::triggered, this, &DebuggerWindow::onStepOut);
|
||||||
|
@ -113,6 +114,11 @@ void DebuggerWindow::onRunPause()
|
||||||
g_emu_thread->setVMPaused(!QtHost::IsVMPaused());
|
g_emu_thread->setVMPaused(!QtHost::IsVMPaused());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void DebuggerWindow::onReset()
|
||||||
|
{
|
||||||
|
g_emu_thread->resetVM();
|
||||||
|
}
|
||||||
|
|
||||||
void DebuggerWindow::onStepInto()
|
void DebuggerWindow::onStepInto()
|
||||||
{
|
{
|
||||||
CpuWidget* currentCpu = static_cast<CpuWidget*>(m_ui.cpuTabs->currentWidget());
|
CpuWidget* currentCpu = static_cast<CpuWidget*>(m_ui.cpuTabs->currentWidget());
|
||||||
|
|
|
@ -18,6 +18,7 @@ public:
|
||||||
public slots:
|
public slots:
|
||||||
void onVMStateChanged();
|
void onVMStateChanged();
|
||||||
void onRunPause();
|
void onRunPause();
|
||||||
|
void onReset();
|
||||||
void onStepInto();
|
void onStepInto();
|
||||||
void onStepOver();
|
void onStepOver();
|
||||||
void onStepOut();
|
void onStepOut();
|
||||||
|
@ -30,6 +31,7 @@ protected:
|
||||||
private:
|
private:
|
||||||
Ui::DebuggerWindow m_ui;
|
Ui::DebuggerWindow m_ui;
|
||||||
QAction* m_actionRunPause;
|
QAction* m_actionRunPause;
|
||||||
|
QAction* m_actionReset;
|
||||||
QAction* m_actionStepInto;
|
QAction* m_actionStepInto;
|
||||||
QAction* m_actionStepOver;
|
QAction* m_actionStepOver;
|
||||||
QAction* m_actionStepOut;
|
QAction* m_actionStepOut;
|
||||||
|
|
|
@ -51,6 +51,7 @@
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</attribute>
|
</attribute>
|
||||||
<addaction name="actionRun"/>
|
<addaction name="actionRun"/>
|
||||||
|
<addaction name="actionReset"/>
|
||||||
<addaction name="actionStepInto"/>
|
<addaction name="actionStepInto"/>
|
||||||
<addaction name="actionStepOver"/>
|
<addaction name="actionStepOver"/>
|
||||||
<addaction name="actionStepOut"/>
|
<addaction name="actionStepOut"/>
|
||||||
|
@ -65,6 +66,14 @@
|
||||||
<string>Run</string>
|
<string>Run</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
|
<action name="actionReset">
|
||||||
|
<property name="icon">
|
||||||
|
<iconset theme="restart-line"/>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Reset</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
<action name="actionStepInto">
|
<action name="actionStepInto">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset theme="debug-step-into-line"/>
|
<iconset theme="debug-step-into-line"/>
|
||||||
|
|
Loading…
Reference in New Issue