mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-01 02:03:47 +01:00
Debugger: Use a lock for memory reallocs.
Simpler this way, no need to remember to lock memory.
This commit is contained in:
1 parent
8598fc9912
commit
3193772e78
4 files changed
+17
-7
No files matched your search
@@ -256,7 +256,6 @@ 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");
|
||||
}
|
||||
@@ -339,7 +338,6 @@ 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");
|
||||
}
|
||||
@@ -417,7 +415,6 @@ 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