mirror of
https://github.com/libretro/ppsspp.git
synced 2024-12-12 10:56:45 +00:00
97098f109a
Might as well. Everything still builds fine.
47 lines
958 B
C++
47 lines
958 B
C++
#pragma once
|
|
#include "Common/CommonWindows.h"
|
|
#include "Common/CommonTypes.h"
|
|
#include "Core/Debugger/DebugInterface.h"
|
|
#include "Core/Debugger/Breakpoints.h"
|
|
|
|
class BreakpointWindow
|
|
{
|
|
HWND parentHwnd;
|
|
DebugInterface* cpu;
|
|
|
|
bool memory;
|
|
bool read;
|
|
bool write;
|
|
bool enabled;
|
|
bool log;
|
|
bool onChange;
|
|
u32 address;
|
|
u32 size;
|
|
char condition[128];
|
|
PostfixExpression compiledCondition;
|
|
|
|
static BreakpointWindow* bp;
|
|
bool fetchDialogData(HWND hwnd);
|
|
public:
|
|
BreakpointWindow(HWND parent, DebugInterface* cpu): cpu(cpu)
|
|
{
|
|
parentHwnd = parent;
|
|
memory = true;
|
|
onChange = false;
|
|
read = write = true;
|
|
enabled = log = true;
|
|
address = -1;
|
|
size = 1;
|
|
condition[0] = 0;
|
|
};
|
|
|
|
|
|
static INT_PTR CALLBACK dlgFunc(HWND hWnd, UINT iMsg, WPARAM wParam, LPARAM lParam);
|
|
bool exec();
|
|
bool isMemoryBreakpoint() { return memory; };
|
|
|
|
void addBreakpoint();
|
|
void loadFromMemcheck(MemCheck& memcheck);
|
|
void loadFromBreakpoint(BreakPoint& memcheck);
|
|
|
|
}; |