Added a RAM Watch window to the debugger

Conflicts:
	Source/Core/Core/HW/Memmap.cpp
	Source/Core/Core/HW/Memmap.h
	Source/Core/DolphinWX/Debugger/CodeWindow.h
This commit is contained in:
skidau
2014-10-19 21:45:40 +11:00
parent df37649b9f
commit 613cae613a
21 changed files with 628 additions and 89 deletions

View File

@ -38,6 +38,7 @@ enum
IDM_COPYCODE,
IDM_RUNTOHERE,
IDM_DYNARECRESULTS,
IDM_WATCHADDRESS,
IDM_TOGGLEMEMORY,
IDM_VIEWASFP,
IDM_VIEWASASCII,
@ -180,6 +181,11 @@ void CMemoryView::OnPopupMenu(wxCommandEvent& event)
break;
#endif
case IDM_WATCHADDRESS:
debugger->AddWatch(selection);
Refresh();
break;
case IDM_TOGGLEMEMORY:
memory ^= 1;
Refresh();
@ -215,6 +221,7 @@ void CMemoryView::OnMouseDownR(wxMouseEvent& event)
menu->Append(IDM_COPYADDRESS, _("Copy &address"));
menu->Append(IDM_COPYHEX, _("Copy &hex"));
#endif
menu->Append(IDM_WATCHADDRESS, _("Add to &watch"));
menu->Append(IDM_TOGGLEMEMORY, _("Toggle &memory"));
wxMenu* viewAsSubMenu = new wxMenu;