mirror of
https://github.com/libretro/ppsspp.git
synced 2024-12-02 06:06:24 +00:00
56 lines
1.4 KiB
C++
56 lines
1.4 KiB
C++
#pragma once
|
|
|
|
#include "../../Core/Debugger/DebugInterface.h"
|
|
#include "../../Core/HLE/sceKernelThread.h"
|
|
#include "../../Core/Debugger/Breakpoints.h"
|
|
|
|
class CtrlThreadList
|
|
{
|
|
HWND wnd;
|
|
WNDPROC oldProc;
|
|
std::vector<DebugThreadInfo> threads;
|
|
char stringBuffer[256];
|
|
|
|
public:
|
|
void setDialogItem(HWND hwnd);
|
|
void reloadThreads();
|
|
void handleNotify(LPARAM lParam);
|
|
void showMenu(int itemIndex, const POINT &pt);
|
|
static LRESULT CALLBACK wndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
|
|
const char* getCurrentThreadName();
|
|
};
|
|
|
|
class CtrlDisAsmView;
|
|
|
|
class CtrlBreakpointList
|
|
{
|
|
HWND wnd;
|
|
WNDPROC oldProc;
|
|
std::vector<BreakPoint> displayedBreakPoints_;
|
|
std::vector<MemCheck> displayedMemChecks_;
|
|
char breakpointText[256];
|
|
DebugInterface* cpu;
|
|
CtrlDisAsmView* disasm;
|
|
|
|
void editBreakpoint(int itemIndex);
|
|
void gotoBreakpointAddress(int itemIndex);
|
|
void removeBreakpoint(int itemIndex);
|
|
int getTotalBreakpointCount();
|
|
int getBreakpointIndex(int itemIndex, bool& isMemory);
|
|
void showBreakpointMenu(int itemIndex, const POINT &pt);
|
|
void toggleEnabled(int itemIndex);
|
|
public:
|
|
void setCpu(DebugInterface* cpu)
|
|
{
|
|
this->cpu = cpu;
|
|
};
|
|
void setDisasm(CtrlDisAsmView* disasm)
|
|
{
|
|
this->disasm = disasm;
|
|
};
|
|
void update();
|
|
void setDialogItem(HWND hwnd);
|
|
void handleNotify(LPARAM lParam);
|
|
void showMenu(int itemIndex, const POINT &pt);
|
|
static LRESULT CALLBACK wndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
|
|
}; |