mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-19 17:29:06 +02:00
Add a button on Windows to enable HLE stepping.
This commit is contained in:
1 parent
dc21d5c462
commit
1d7a42f0b8
3 files changed
+25
-11
No files matched your search
@@ -14,6 +14,7 @@
|
||||
|
||||
#include "../../Core/Core.h"
|
||||
#include "../../Core/CPU.h"
|
||||
#include "../../Core/HLE/HLE.h"
|
||||
|
||||
#include "base/stringutil.h"
|
||||
|
||||
@@ -136,10 +137,10 @@ BOOL CDisasm::DlgProc(UINT message, WPARAM wParam, LPARAM lParam)
|
||||
break;
|
||||
|
||||
case IDC_FUNCTIONLIST:
|
||||
switch (HIWORD(wParam))
|
||||
{
|
||||
case CBN_DBLCLK:
|
||||
case CBN_SELCHANGE:
|
||||
switch (HIWORD(wParam))
|
||||
{
|
||||
case CBN_DBLCLK:
|
||||
case CBN_SELCHANGE:
|
||||
{
|
||||
HWND lb = GetDlgItem(m_hDlg,LOWORD(wParam));
|
||||
int n = ListBox_GetCurSel(lb);
|
||||
@@ -154,9 +155,9 @@ BOOL CDisasm::DlgProc(UINT message, WPARAM wParam, LPARAM lParam)
|
||||
break;
|
||||
|
||||
case IDC_GOTOINT:
|
||||
switch (HIWORD(wParam))
|
||||
{
|
||||
case LBN_SELCHANGE:
|
||||
switch (HIWORD(wParam))
|
||||
{
|
||||
case LBN_SELCHANGE:
|
||||
{
|
||||
HWND lb =GetDlgItem(m_hDlg,LOWORD(wParam));
|
||||
int n = ComboBox_GetCurSel(lb);
|
||||
@@ -192,7 +193,7 @@ BOOL CDisasm::DlgProc(UINT message, WPARAM wParam, LPARAM lParam)
|
||||
SetDebugMode(false);
|
||||
CBreakPoints::AddBreakPoint(cpu->GetPC()+cpu->getInstructionSize(0),true);
|
||||
_dbg_update_();
|
||||
Core_EnableStepping(false);
|
||||
Core_EnableStepping(false);
|
||||
MainWindow::UpdateMenus();
|
||||
Sleep(1);
|
||||
ptr->gotoPC();
|
||||
@@ -200,6 +201,16 @@ BOOL CDisasm::DlgProc(UINT message, WPARAM wParam, LPARAM lParam)
|
||||
}
|
||||
break;
|
||||
|
||||
case IDC_STEPHLE:
|
||||
{
|
||||
hleDebugBreak();
|
||||
SetDebugMode(false);
|
||||
_dbg_update_();
|
||||
Core_EnableStepping(false);
|
||||
MainWindow::UpdateMenus();
|
||||
}
|
||||
break;
|
||||
|
||||
case IDC_STOP:
|
||||
{
|
||||
SetDebugMode(true);
|
||||
@@ -241,8 +252,8 @@ BOOL CDisasm::DlgProc(UINT message, WPARAM wParam, LPARAM lParam)
|
||||
HWND list = GetDlgItem(hDlg,IDC_CALLSTACK);
|
||||
ComboBox_ResetContent(list);
|
||||
|
||||
u32 pc = currentMIPS->pc;
|
||||
u32 ra = currentMIPS->r[MIPS_REG_RA];
|
||||
u32 pc = currentMIPS->pc;
|
||||
u32 ra = currentMIPS->r[MIPS_REG_RA];
|
||||
DWORD addr = Memory::ReadUnchecked_U32(pc);
|
||||
int count=1;
|
||||
ComboBox_SetItemData(list,ComboBox_AddString(list,symbolMap.GetDescription(pc)),pc);
|
||||
@@ -341,6 +352,7 @@ void CDisasm::SetDebugMode(bool _bDebug)
|
||||
EnableWindow( GetDlgItem(hDlg, IDC_GO), TRUE);
|
||||
EnableWindow( GetDlgItem(hDlg, IDC_STEP), TRUE);
|
||||
EnableWindow( GetDlgItem(hDlg, IDC_STEPOVER), TRUE);
|
||||
EnableWindow( GetDlgItem(hDlg, IDC_STEPHLE), TRUE);
|
||||
EnableWindow( GetDlgItem(hDlg, IDC_STOP), FALSE);
|
||||
EnableWindow( GetDlgItem(hDlg, IDC_SKIP), TRUE);
|
||||
CtrlDisAsmView *ptr = CtrlDisAsmView::getFrom(GetDlgItem(m_hDlg,IDC_DISASMVIEW));
|
||||
@@ -353,6 +365,7 @@ void CDisasm::SetDebugMode(bool _bDebug)
|
||||
EnableWindow( GetDlgItem(hDlg, IDC_GO), FALSE);
|
||||
EnableWindow( GetDlgItem(hDlg, IDC_STEP), FALSE);
|
||||
EnableWindow( GetDlgItem(hDlg, IDC_STEPOVER), FALSE);
|
||||
EnableWindow( GetDlgItem(hDlg, IDC_STEPHLE), FALSE);
|
||||
EnableWindow( GetDlgItem(hDlg, IDC_STOP), TRUE);
|
||||
EnableWindow( GetDlgItem(hDlg, IDC_SKIP), FALSE);
|
||||
}
|
||||
|
||||
Binary file not shown.
+2
-1
@@ -246,13 +246,14 @@
|
||||
#define ID_OPTIONS_WIREFRAME 40123
|
||||
#define ID_OPTIONS_HARDWARETRANSFORM 40124
|
||||
#define ID_OPTIONS_FASTMEMORY 40125
|
||||
#define IDC_STEPHLE 40126
|
||||
|
||||
// Next default values for new objects
|
||||
//
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||
#define _APS_NEXT_RESOURCE_VALUE 232
|
||||
#define _APS_NEXT_COMMAND_VALUE 40126
|
||||
#define _APS_NEXT_COMMAND_VALUE 40127
|
||||
#define _APS_NEXT_CONTROL_VALUE 1162
|
||||
#define _APS_NEXT_SYMED_VALUE 101
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user