Add a quick way to go to a particular address.
This commit is contained in:
parent
d5513c3b58
commit
1cd9f01358
4 changed files with 34 additions and 8 deletions
|
@ -1,7 +1,8 @@
|
|||
#include "Windows/GEDebugger/CtrlDisplayListView.h"
|
||||
#include "Core/Config.h"
|
||||
#include "Windows/GEDebugger/GEDebugger.h"
|
||||
#include "Windows/InputBox.h"
|
||||
#include "Windows/Main.h"
|
||||
#include "Core/Config.h"
|
||||
#include <algorithm>
|
||||
|
||||
const PTCHAR CtrlDisplayListView::windowClass = _T("CtrlDisplayListView");
|
||||
|
@ -328,7 +329,7 @@ void CtrlDisplayListView::onMouseUp(WPARAM wParam, LPARAM lParam, int button)
|
|||
redraw();
|
||||
}
|
||||
break;
|
||||
case IDC_DEBUG_LIST_SETSTALL:
|
||||
case ID_GEDBG_SETSTALLADDR:
|
||||
{
|
||||
gpuDebug->ResetListStall(list.id,curAddress);
|
||||
list.stall = curAddress;
|
||||
|
@ -354,6 +355,24 @@ void CtrlDisplayListView::onMouseUp(WPARAM wParam, LPARAM lParam, int button)
|
|||
redraw();
|
||||
}
|
||||
break;
|
||||
case ID_GEDBG_GOTOPC:
|
||||
setCurAddress(list.pc);
|
||||
scrollAddressIntoView();
|
||||
redraw();
|
||||
break;
|
||||
case ID_GEDBG_GOTOADDR:
|
||||
{
|
||||
u32 newAddress = curAddress;
|
||||
if (!InputBox_GetHex(GetModuleHandle(NULL), wnd, L"Address", curAddress, newAddress)) {
|
||||
break;
|
||||
}
|
||||
if (Memory::IsValidAddress(newAddress)) {
|
||||
setCurAddress(newAddress);
|
||||
scrollAddressIntoView();
|
||||
redraw();
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue