diff options
| author | Mat M <mathew1800@gmail.com> | 2016-09-09 02:41:06 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-09-09 02:41:06 -0400 |
| commit | 1eacb8fd598702afa05755e996f66321df5bbd48 (patch) | |
| tree | 2d63be224410a70702969d45f7a69e349f695ceb /Source/Core/DolphinWX/Debugger/MemoryWindow.cpp | |
| parent | 145ebd34e28f8681a6ef0e60e8f7b7f622cef0a8 (diff) | |
| parent | 5358e898c682de4ab8e94670bb990564d0d0c547 (diff) | |
Merge pull request #4115 from aldelaro5/memorycheck-memorywindow-update-fix
Fix the breakpoint list not updating after adding a memory check via the memory view
Diffstat (limited to 'Source/Core/DolphinWX/Debugger/MemoryWindow.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/Debugger/MemoryWindow.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/Source/Core/DolphinWX/Debugger/MemoryWindow.cpp b/Source/Core/DolphinWX/Debugger/MemoryWindow.cpp index 24188a65ea..bfd5829ef0 100644 --- a/Source/Core/DolphinWX/Debugger/MemoryWindow.cpp +++ b/Source/Core/DolphinWX/Debugger/MemoryWindow.cpp @@ -26,6 +26,8 @@ #include "Core/HW/DSP.h" #include "Core/HW/Memmap.h" #include "Core/PowerPC/PowerPC.h" +#include "DolphinWX/Debugger/BreakpointWindow.h" +#include "DolphinWX/Debugger/CodeWindow.h" #include "DolphinWX/Debugger/MemoryView.h" #include "DolphinWX/Debugger/MemoryWindow.h" #include "DolphinWX/Globals.h" @@ -63,9 +65,10 @@ EVT_CHECKBOX(IDM_ASCII, CMemoryWindow::onAscii) EVT_CHECKBOX(IDM_HEX, CMemoryWindow::onHex) END_EVENT_TABLE() -CMemoryWindow::CMemoryWindow(wxWindow* parent, wxWindowID id, const wxPoint& pos, - const wxSize& size, long style, const wxString& name) - : wxPanel(parent, id, pos, size, style, name) +CMemoryWindow::CMemoryWindow(CCodeWindow* code_window, wxWindow* parent, wxWindowID id, + const wxPoint& pos, const wxSize& size, long style, + const wxString& name) + : wxPanel(parent, id, pos, size, style, name), m_code_window(code_window) { DebugInterface* di = &PowerPC::debug_interface; @@ -243,6 +246,10 @@ void CMemoryWindow::OnHostMessage(wxCommandEvent& event) case IDM_NOTIFY_MAP_LOADED: NotifyMapLoaded(); break; + case IDM_UPDATE_BREAKPOINTS: + if (m_code_window->m_BreakpointWindow) + m_code_window->m_BreakpointWindow->NotifyUpdate(); + break; } } |
