mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-14 01:59:34 +01:00
Quick and dirty Windows UI for memchecks.
This commit is contained in:
1 parent
e4b43b73b4
commit
303058f492
3 files changed
+35
-1
No files matched your search
@@ -2,6 +2,7 @@
|
||||
|
||||
#include "../../Core/MemMap.h"
|
||||
#include "../Resource.h"
|
||||
#include "../InputBox.h"
|
||||
|
||||
#include "../../Core/Debugger/Breakpoints.h"
|
||||
#include "../../Core/Debugger/SymbolMap.h"
|
||||
@@ -234,6 +235,37 @@ BOOL CDisasm::DlgProc(UINT message, WPARAM wParam, LPARAM lParam)
|
||||
}
|
||||
break;
|
||||
|
||||
case IDC_MEMCHECK:
|
||||
{
|
||||
bool isRunning = !Core_IsInactive();
|
||||
if (isRunning)
|
||||
{
|
||||
SetDebugMode(true);
|
||||
Core_EnableStepping(true);
|
||||
Core_WaitInactive(200);
|
||||
}
|
||||
|
||||
MemCheck check;
|
||||
if (InputBox_GetHex(GetModuleHandle(NULL), m_hDlg, "JIT (and not HLE) only for now, no delete", 0, check.iStartAddress))
|
||||
{
|
||||
check.bBreak = true;
|
||||
check.bLog = true;
|
||||
check.bOnRead = true;
|
||||
check.bOnWrite = true;
|
||||
check.bRange = false;
|
||||
CBreakPoints::MemChecks.push_back(check);
|
||||
CBreakPoints::InvalidateJit();
|
||||
}
|
||||
|
||||
if (isRunning)
|
||||
{
|
||||
SetDebugMode(false);
|
||||
Core_EnableStepping(false);
|
||||
MainWindow::UpdateMenus();
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case IDC_ADDRESS:
|
||||
{
|
||||
if (HIWORD(wParam) == EN_CHANGE )
|
||||
|
||||
Reference in new issue
Block a user