Allow re-opening the debugger after closing it

This commit is contained in:
Kingcom 2014-02-22 12:47:22 +01:00
parent 854574af66
commit fbb0a77ce3
2 changed files with 7 additions and 0 deletions

View File

@ -19,6 +19,7 @@ BEGIN_EVENT_TABLE(DisassemblyDialog, wxFrame)
EVT_COMMAND( wxID_ANY, debEVT_GOTOINDISASM, DisassemblyDialog::onDebuggerEvent )
EVT_COMMAND( wxID_ANY, debEVT_STEPOVER, DisassemblyDialog::onDebuggerEvent )
EVT_COMMAND( wxID_ANY, debEVT_UPDATE, DisassemblyDialog::onDebuggerEvent )
EVT_CLOSE( DisassemblyDialog::onClose )
END_EVENT_TABLE()
@ -300,6 +301,11 @@ void DisassemblyDialog::onDebuggerEvent(wxCommandEvent& evt)
}
}
void DisassemblyDialog::onClose(wxCloseEvent& evt)
{
Hide();
}
void DisassemblyDialog::update()
{
if (currentCpu != NULL)

View File

@ -55,6 +55,7 @@ protected:
void onDebuggerEvent(wxCommandEvent& evt);
void onPageChanging(wxCommandEvent& evt);
void onBreakpointClick(wxCommandEvent& evt);
void onClose(wxCloseEvent& evt);
void stepOver();
private:
CpuTabPage* eeTab;