Core: Kill off Host_ShowJitResults

Another host function that can be killed off by simple wx event handling
This commit is contained in:
Lioncash
2014-08-15 15:10:41 -04:00
parent d5d5580424
commit cf46ac7dc9
11 changed files with 15 additions and 24 deletions

View File

@ -309,7 +309,12 @@ void CCodeView::OnPopupMenu(wxCommandEvent& event)
break;
case IDM_JITRESULTS:
m_debugger->ShowJitResults(m_selection);
{
// Propagate back to the parent window and tell it
// to flip to the JIT tab for the current address.
wxCommandEvent jit_event(wxEVT_HOST_COMMAND, IDM_UPDATEJITPANE);
GetEventHandler()->AddPendingEvent(jit_event);
}
break;
case IDM_FOLLOWBRANCH:

View File

@ -49,6 +49,7 @@
#include "DolphinWX/Debugger/CodeView.h"
#include "DolphinWX/Debugger/CodeWindow.h"
#include "DolphinWX/Debugger/DebuggerUIUtil.h"
#include "DolphinWX/Debugger/JitWindow.h"
#include "DolphinWX/Debugger/RegisterWindow.h"
extern "C" // Bitmaps
@ -156,6 +157,13 @@ void CCodeWindow::OnHostMessage(wxCommandEvent& event)
Update();
if (m_BreakpointWindow) m_BreakpointWindow->NotifyUpdate();
break;
case IDM_UPDATEJITPANE:
// Check if the JIT pane is in the AUI notebook. If not, add it and switch to it.
if (!m_JitWindow)
ToggleJitWindow(true);
m_JitWindow->ViewAddr(codeview->GetSelection());
break;
}
}