summaryrefslogtreecommitdiff
path: root/Source/Core/DebuggerWX/src/CodeView.cpp
diff options
context:
space:
mode:
authorhrydgard <hrydgard@gmail.com>2008-08-21 17:22:55 +0000
committerhrydgard <hrydgard@gmail.com>2008-08-21 17:22:55 +0000
commit5e4da92d428adbaed6f82d20bacd54965aceb717 (patch)
treeefe7b2c0f84db55e0691a058df303640b832f5df /Source/Core/DebuggerWX/src/CodeView.cpp
parent4e9b5a40fde8d8043e4b7f39fc8f862103c52b8e (diff)
Very basic JIT results viewer.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@254 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DebuggerWX/src/CodeView.cpp')
-rw-r--r--Source/Core/DebuggerWX/src/CodeView.cpp24
1 files changed, 8 insertions, 16 deletions
diff --git a/Source/Core/DebuggerWX/src/CodeView.cpp b/Source/Core/DebuggerWX/src/CodeView.cpp
index 42c6f6d938..e31a3ab9e7 100644
--- a/Source/Core/DebuggerWX/src/CodeView.cpp
+++ b/Source/Core/DebuggerWX/src/CodeView.cpp
@@ -19,6 +19,8 @@
#include "Common.h"
#include "CodeView.h"
+#include "JitWindow.h"
+
#include <wx/event.h>
#include <wx/clipbrd.h>
@@ -31,7 +33,7 @@ enum
IDM_COPYCODE,
IDM_INSERTBLR,
IDM_RUNTOHERE,
- IDM_DYNARECRESULTS,
+ IDM_JITRESULTS,
};
@@ -158,9 +160,7 @@ void CCodeView::OnPopupMenu(wxCommandEvent& event)
#if wxUSE_CLIPBOARD
case IDM_COPYADDRESS:
- {
wxTheClipboard->SetData(new wxTextDataObject(wxString::Format(_T("%08x"), selection)));
- }
break;
case IDM_COPYCODE:
@@ -168,35 +168,27 @@ void CCodeView::OnPopupMenu(wxCommandEvent& event)
break;
case IDM_COPYHEX:
- {
+ {
char temp[24];
sprintf(temp, "%08x", debugger->readMemory(selection));
wxTheClipboard->SetData(new wxTextDataObject(wxString::FromAscii(temp)));
- }
+ }
break;
#endif
case IDM_RUNTOHERE:
- {
debugger->setBreakpoint(selection);
debugger->runToBreakpoint();
redraw();
- }
break;
case IDM_INSERTBLR:
- {
debugger->insertBLR(selection);
redraw();
break;
- }
- case IDM_DYNARECRESULTS:
- {
-// CDynaViewDlg::ViewAddr(selection);
-// CDynaViewDlg::Show(TRUE);
-// MessageBox(NULL, "not impl", "CtrlDisAsmView", MB_OK);
- }
+ case IDM_JITRESULTS:
+ CJitWindow::ViewAddr(selection);
break;
}
@@ -219,7 +211,7 @@ void CCodeView::OnMouseUpR(wxMouseEvent& event)
#endif
menu.Append(IDM_RUNTOHERE, _T("&Run To Here"));
menu.Append(IDM_INSERTBLR, wxString::FromAscii("Insert &blr"));
- //menu.Append(IDM_DYNARECRESULTS, "Copy &address");
+ menu.Append(IDM_JITRESULTS, wxString::FromAscii("PPC vs X86"));
PopupMenu(&menu);
event.Skip(true);
}