Debugger: Lock memory during stack walk.

In case of shutdown during it.
This commit is contained in:
Unknown W. Brackets 2023-02-22 21:14:33 -08:00
parent be833550ec
commit cbc1ed4bfe
2 changed files with 8 additions and 6 deletions

View file

@ -291,11 +291,10 @@ void CDisasm::stepOver()
UpdateDialog();
}
void CDisasm::stepOut()
{
if (!PSP_IsInited()) {
void CDisasm::stepOut() {
auto memLock = Memory::Lock();
if (!PSP_IsInited())
return;
}
auto threads = GetThreadsInfo();

View file

@ -700,8 +700,11 @@ void CtrlStackTraceView::OnDoubleClick(int itemIndex, int column)
SendMessage(GetParent(GetHandle()),WM_DEB_GOTOWPARAM,frames[itemIndex].pc,0);
}
void CtrlStackTraceView::loadStackTrace()
{
void CtrlStackTraceView::loadStackTrace() {
auto memLock = Memory::Lock();
if (!PSP_IsInited())
return;
auto threads = GetThreadsInfo();
u32 entry = 0, stackTop = 0;