Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
hrydgard
GitHub Repository: hrydgard/ppsspp
Path: blob/master/Windows/Debugger/BreakpointWindow.h
3185 views
1
#pragma once
2
#include <string>
3
#include "Common/CommonWindows.h"
4
#include "Common/CommonTypes.h"
5
#include "Core/Debugger/DebugInterface.h"
6
#include "Core/MIPS/MIPSDebugInterface.h"
7
8
struct BreakPoint;
9
struct MemCheck;
10
11
class BreakpointWindow {
12
HWND parentHwnd;
13
MIPSDebugInterface *cpu;
14
15
bool memory;
16
bool read;
17
bool write;
18
bool enabled;
19
bool log;
20
bool onChange;
21
u32 address;
22
u32 size;
23
std::string condition;
24
std::string logFormat;
25
PostfixExpression compiledCondition;
26
27
bool fetchDialogData(HWND hwnd);
28
bool GetCheckState(HWND hwnd, int dlgItem);
29
30
static INT_PTR CALLBACK StaticDlgFunc(HWND hWnd, UINT iMsg, WPARAM wParam, LPARAM lParam);
31
INT_PTR DlgFunc(HWND hWnd, UINT iMsg, WPARAM wParam, LPARAM lParam);
32
33
public:
34
BreakpointWindow(HWND parent, MIPSDebugInterface* cpu): cpu(cpu)
35
{
36
parentHwnd = parent;
37
memory = true;
38
onChange = false;
39
read = write = true;
40
enabled = log = true;
41
address = -1;
42
size = 1;
43
};
44
45
bool exec();
46
bool isMemoryBreakpoint() { return memory; };
47
48
void addBreakpoint();
49
void loadFromMemcheck(const MemCheck &memcheck);
50
void loadFromBreakpoint(const BreakPoint &bp);
51
void initBreakpoint(u32 address);
52
};
53
54