Debugger: Reorganize state handling.

Looking like this will be needed for disasm caches, etc.
This commit is contained in:
Unknown W. Brackets committed 2018-06-08 06:59:16 -07:00
1 parent 0a21063525
commit a4044fd6a0
4 files changed
+40 -8

No files matched your search

@@ -22,6 +22,15 @@
#include "Core/MIPS/MIPS.h"
#include "Core/MIPS/MIPSDebugInterface.h"
void *WebSocketCPUCoreInit(DebuggerEventHandlerMap &map) {
// No need to bind or alloc state, these are all global.
map["cpu.getAllRegs"] = &WebSocketCPUGetAllRegs;
map["cpu.getReg"] = &WebSocketCPUGetReg;
map["cpu.setReg"] = &WebSocketCPUSetReg;
return nullptr;
}
static std::string RegValueAsFloat(uint32_t u) {
union {
uint32_t u;