mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-31 02:59:33 +02:00
Reverse-engineering workflows need to (1) find where an unknown value lives in memory and (2) label what's found, neither of which the debugger API could do before: - memory.search (MemorySubscriber.cpp): Cheat-Engine-style scan of a memory range for a u8/u16/u32/float value, or a byte pattern with an optional wildcard mask. - hle.data.list/add/remove/rename (HLESubscriber.cpp): manage ST_DATA symbols (structs, tables, buffers), mirroring the existing hle.func.* commands for functions. Needed a new SymbolMap::RemoveData, since only RemoveFunction existed - added following the same pattern. Verified live against a running PPSSPP instance (game.status, cpu.stepping, memory.search in u32/bytes/masked-bytes modes, and the full add/list/rename/remove data-symbol lifecycle) via Tools/wsdbg. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XDNwPPuidmNxQGRJxBuRL6
39 lines
1.6 KiB
C
39 lines
1.6 KiB
C
// Copyright (c) 2018- PPSSPP Project.
|
|
|
|
// This program is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU General Public License as published by
|
|
// the Free Software Foundation, version 2.0 or later versions.
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU General Public License 2.0 for more details.
|
|
|
|
// A copy of the GPL 2.0 should have been included with the program.
|
|
// If not, see http://www.gnu.org/licenses/
|
|
|
|
// Official git repository and contact information can be found at
|
|
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
|
|
|
|
#pragma once
|
|
|
|
#include "Core/Debugger/WebSocket/WebSocketUtils.h"
|
|
|
|
DebuggerSubscriber *WebSocketHLEInit(DebuggerEventHandlerMap &map);
|
|
|
|
void WebSocketHLEThreadList(DebuggerRequest &req);
|
|
void WebSocketHLEThreadWake(DebuggerRequest &req);
|
|
void WebSocketHLEThreadStop(DebuggerRequest &req);
|
|
void WebSocketHLEFuncList(DebuggerRequest &req);
|
|
void WebSocketHLEFuncAdd(DebuggerRequest &req);
|
|
void WebSocketHLEFuncRemove(DebuggerRequest &req);
|
|
void WebSocketHLEFuncRemoveRange(DebuggerRequest &req);
|
|
void WebSocketHLEFuncRename(DebuggerRequest &req);
|
|
void WebSocketHLEFuncScan(DebuggerRequest &req);
|
|
void WebSocketHLEModuleList(DebuggerRequest &req);
|
|
void WebSocketHLEBacktrace(DebuggerRequest &req);
|
|
void WebSocketHLEDataList(DebuggerRequest &req);
|
|
void WebSocketHLEDataAdd(DebuggerRequest &req);
|
|
void WebSocketHLEDataRemove(DebuggerRequest &req);
|
|
void WebSocketHLEDataRename(DebuggerRequest &req);
|