mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-12 05:50:29 +02:00
Debugger: Add some missing memory locks.
We can restart memory when loading save states, so we need this even while we've got startup/shutdown locked.
This commit is contained in:
1 parent
b2cc4a0965
commit
8598fc9912
4 files changed
+13
-1
No files matched your search
@@ -256,6 +256,7 @@ void WebSocketDisasmState::Base(DebuggerRequest &req) {
|
||||
// - params: formatted parameters for the instruction.
|
||||
// - (other info about the disassembled line.)
|
||||
void WebSocketDisasmState::Disasm(DebuggerRequest &req) {
|
||||
auto memLock = Memory::Lock();
|
||||
if (!currentDebugMIPS->isAlive() || !Memory::IsActive()) {
|
||||
return req.Fail("CPU not started");
|
||||
}
|
||||
@@ -338,6 +339,7 @@ void WebSocketDisasmState::Disasm(DebuggerRequest &req) {
|
||||
// Response (same event name):
|
||||
// - address: number address of match or null if none was found.
|
||||
void WebSocketDisasmState::SearchDisasm(DebuggerRequest &req) {
|
||||
auto memLock = Memory::Lock();
|
||||
if (!currentDebugMIPS->isAlive() || !Memory::IsActive()) {
|
||||
return req.Fail("CPU not started");
|
||||
}
|
||||
@@ -415,6 +417,7 @@ void WebSocketDisasmState::SearchDisasm(DebuggerRequest &req) {
|
||||
// Response (same event name):
|
||||
// - encoding: resulting encoding at this address. Always returns one value, even for macros.
|
||||
void WebSocketDisasmState::Assemble(DebuggerRequest &req) {
|
||||
auto memLock = Memory::Lock();
|
||||
if (!currentDebugMIPS->isAlive() || !Memory::IsActive()) {
|
||||
return req.Fail("CPU not started");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user