ppsspp/Windows/Debugger/BreakpointWindow.h

47 lines
958 B
C
Raw Normal View History

2013-07-02 00:20:19 +02:00
#pragma once
#include "Common/CommonWindows.h"
2013-07-02 00:20:19 +02:00
#include "Common/CommonTypes.h"
#include "Core/Debugger/DebugInterface.h"
2013-07-02 00:20:19 +02:00
#include "Core/Debugger/Breakpoints.h"
class BreakpointWindow
{
HWND parentHwnd;
DebugInterface* cpu;
bool memory;
bool read;
bool write;
bool enabled;
bool log;
2013-07-02 11:51:29 +02:00
bool onChange;
2013-07-02 00:20:19 +02:00
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;
2013-07-02 11:51:29 +02:00
memory = true;
onChange = false;
2013-07-02 00:20:19 +02:00
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);
};