mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-01 03:03:40 +00:00
Clear temp breakpoints off the CPU thread.
This should make it possible to actually clear them. Fixes #2519.
This commit is contained in:
parent
0d0e1db1b9
commit
aaafd372e9
@ -64,9 +64,6 @@ void JitBreakpoint()
|
||||
Core_EnableStepping(true);
|
||||
host->SetDebugMode(true);
|
||||
|
||||
if (CBreakPoints::IsTempBreakPoint(currentMIPS->pc))
|
||||
CBreakPoints::RemoveBreakPoint(currentMIPS->pc);
|
||||
|
||||
// There's probably a better place for this.
|
||||
if (USE_JIT_MISSMAP)
|
||||
{
|
||||
|
@ -732,6 +732,11 @@ BOOL CDisasm::DlgProc(UINT message, WPARAM wParam, LPARAM lParam)
|
||||
UpdateDialog();
|
||||
}
|
||||
break;
|
||||
|
||||
case WM_DISASM_SETDEBUG:
|
||||
SetDebugMode(lParam != 0);
|
||||
return TRUE;
|
||||
|
||||
case WM_SIZE:
|
||||
{
|
||||
UpdateSize(LOWORD(lParam), HIWORD(lParam));
|
||||
|
@ -12,6 +12,9 @@
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
// Takes lParam for debug mode, zero or non zero.
|
||||
const int WM_DISASM_SETDEBUG = WM_APP + 0;
|
||||
|
||||
class CDisasm : public Dialog
|
||||
{
|
||||
private:
|
||||
|
@ -124,9 +124,11 @@ void WindowsHost::UpdateDisassembly()
|
||||
|
||||
void WindowsHost::SetDebugMode(bool mode)
|
||||
{
|
||||
for (int i=0; i<numCPUs; i++)
|
||||
for (int i = 0; i < numCPUs; i++)
|
||||
{
|
||||
if (disasmWindow[i])
|
||||
disasmWindow[i]->SetDebugMode(mode);
|
||||
PostMessage(disasmWindow[i]->GetDlgHandle(), WM_DISASM_SETDEBUG, 0, (LPARAM)mode);
|
||||
}
|
||||
}
|
||||
|
||||
extern BOOL g_bFullScreen;
|
||||
|
Loading…
x
Reference in New Issue
Block a user