mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-28 00:33:34 +01: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
@@ -201,7 +201,6 @@ COLORREF scaleColor(COLORREF color, float factor)
|
||||
|
||||
bool CtrlDisAsmView::getDisasmAddressText(u32 address, char* dest, bool abbreviateLabels, bool showData)
|
||||
{
|
||||
auto memLock = Memory::Lock();
|
||||
if (!PSP_IsInited())
|
||||
return false;
|
||||
|
||||
@@ -469,6 +468,7 @@ void CtrlDisAsmView::drawArguments(HDC hdc, const DisassemblyLineInfo &line, int
|
||||
|
||||
void CtrlDisAsmView::onPaint(WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
auto memLock = Memory::Lock();
|
||||
if (!debugger->isAlive()) return;
|
||||
|
||||
PAINTSTRUCT ps;
|
||||
@@ -1180,6 +1180,7 @@ void CtrlDisAsmView::calculatePixelPositions()
|
||||
|
||||
void CtrlDisAsmView::search(bool continueSearch)
|
||||
{
|
||||
auto memLock = Memory::Lock();
|
||||
u32 searchAddress;
|
||||
|
||||
if (continueSearch == false || searchQuery[0] == 0)
|
||||
@@ -1260,6 +1261,7 @@ void CtrlDisAsmView::search(bool continueSearch)
|
||||
|
||||
std::string CtrlDisAsmView::disassembleRange(u32 start, u32 size)
|
||||
{
|
||||
auto memLock = Memory::Lock();
|
||||
std::string result;
|
||||
|
||||
// gather all branch targets without labels
|
||||
|
||||
Reference in new issue
Block a user