From e8b8f89aa8a4d61e969f2637b1f0c10a3819110a Mon Sep 17 00:00:00 2001 From: Kingcom Date: Sat, 2 Nov 2013 17:39:39 +0100 Subject: [PATCH] Use the disassembly's memory view for "goto in memory view" --- Windows/Debugger/CtrlDisAsmView.cpp | 4 +--- Windows/Debugger/CtrlRegisterList.cpp | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Windows/Debugger/CtrlDisAsmView.cpp b/Windows/Debugger/CtrlDisAsmView.cpp index 12ad903ed0..0507b84347 100644 --- a/Windows/Debugger/CtrlDisAsmView.cpp +++ b/Windows/Debugger/CtrlDisAsmView.cpp @@ -994,9 +994,7 @@ void CtrlDisAsmView::onMouseUp(WPARAM wParam, LPARAM lParam, int button) switch(TrackPopupMenuEx(GetSubMenu(g_hPopupMenus,1),TPM_RIGHTBUTTON|TPM_RETURNCMD,pt.x,pt.y,wnd,0)) { case ID_DISASM_GOTOINMEMORYVIEW: - for (int i=0; iGoto(curAddress); + SendMessage(GetParent(wnd),WM_DEB_GOTOHEXEDIT,curAddress,0); break; case ID_DISASM_ADDHLE: break; diff --git a/Windows/Debugger/CtrlRegisterList.cpp b/Windows/Debugger/CtrlRegisterList.cpp index a1e2a928fd..f8fc9390c3 100644 --- a/Windows/Debugger/CtrlRegisterList.cpp +++ b/Windows/Debugger/CtrlRegisterList.cpp @@ -534,9 +534,7 @@ void CtrlRegisterList::onMouseUp(WPARAM wParam, LPARAM lParam, int button) switch(TrackPopupMenuEx(GetSubMenu(g_hPopupMenus,3),TPM_RIGHTBUTTON|TPM_RETURNCMD,pt.x,pt.y,wnd,0)) { case ID_REGLIST_GOTOINMEMORYVIEW: - for (int i=0; iGoto(val); + SendMessage(GetParent(wnd),WM_DEB_GOTOHEXEDIT,val,0); break; case ID_REGLIST_GOTOINDISASM: for (int i=0; i