mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-28 16:53:40 +01:00
Debugger: Refactor to allow simpler broadcasting.
It's okay to mix a bit for simple ones, I think.
This commit is contained in:
1 parent
c10b2035b5
commit
4ce2b64ef7
16 files changed
+46
-51
No files matched your search
@@ -28,11 +28,11 @@
|
||||
|
||||
using namespace MIPSAnalyst;
|
||||
|
||||
struct WebSocketSteppingState {
|
||||
struct WebSocketSteppingState : public DebuggerSubscriber {
|
||||
WebSocketSteppingState() {
|
||||
disasm_.setCpu(currentDebugMIPS);
|
||||
}
|
||||
~WebSocketSteppingState() {
|
||||
~WebSocketSteppingState() override {
|
||||
disasm_.clear();
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ protected:
|
||||
DisassemblyManager disasm_;
|
||||
};
|
||||
|
||||
void *WebSocketSteppingInit(DebuggerEventHandlerMap &map) {
|
||||
DebuggerSubscriber *WebSocketSteppingInit(DebuggerEventHandlerMap &map) {
|
||||
auto p = new WebSocketSteppingState();
|
||||
map["cpu.stepInto"] = std::bind(&WebSocketSteppingState::Into, p, std::placeholders::_1);
|
||||
map["cpu.stepOver"] = std::bind(&WebSocketSteppingState::Over, p, std::placeholders::_1);
|
||||
@@ -62,10 +62,6 @@ void *WebSocketSteppingInit(DebuggerEventHandlerMap &map) {
|
||||
return p;
|
||||
}
|
||||
|
||||
void WebSocketSteppingShutdown(void *p) {
|
||||
delete static_cast<WebSocketSteppingState *>(p);
|
||||
}
|
||||
|
||||
static DebugInterface *CPUFromRequest(DebuggerRequest &req, uint32_t *threadID = nullptr) {
|
||||
if (!req.HasParam("thread")) {
|
||||
if (threadID)
|
||||
|
||||
Reference in new issue
Block a user