mirror of
https://github.com/libretro/ppsspp.git
synced 2024-12-14 04:28:42 +00:00
54 lines
1.3 KiB
C++
54 lines
1.3 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 gotoBreakpointAddress(int itemIndex);
|
|
void removeBreakpoint(int itemIndex);
|
|
int getTotalBreakpointCount();
|
|
int getBreakpointIndex(int itemIndex, bool& isMemory);
|
|
void showBreakpointMenu(int itemIndex, const POINT &pt);
|
|
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);
|
|
}; |