Skip to content

Commit

Permalink
Merge pull request #3409 from sepalani/r_menu_code
Browse files Browse the repository at this point in the history
RegisterView: View code menu added
  • Loading branch information
skidau committed Jan 2, 2016
2 parents 96d8ea5 + a696735 commit 066af14
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Source/Core/DolphinWX/Debugger/RegisterView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ enum
{
IDM_WATCHADDRESS,
IDM_VIEWMEMORY,
IDM_VIEWCODE
};

static const char *special_reg_names[] = {
Expand Down Expand Up @@ -268,6 +269,7 @@ void CRegisterView::OnMouseDownR(wxGridEvent& event)
wxMenu menu;
menu.Append(IDM_WATCHADDRESS, _("Add to &watch"));
menu.Append(IDM_VIEWMEMORY, _("View &memory"));
menu.Append(IDM_VIEWCODE, _("View &code"));
PopupMenu(&menu);
}

Expand All @@ -291,6 +293,10 @@ void CRegisterView::OnPopupMenu(wxCommandEvent& event)
memory_window->JumpToAddress(m_selectedAddress);
Refresh();
break;
case IDM_VIEWCODE:
code_window->JumpToAddress(m_selectedAddress);
Refresh();
break;
}
event.Skip();
}

0 comments on commit 066af14

Please sign in to comment.