mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix a crash in debug mode with no threads.
This commit is contained in:
parent
77913c2d56
commit
5b888f0d0a
1 changed files with 6 additions and 2 deletions
|
@ -661,7 +661,7 @@ void CtrlStackTraceView::loadStackTrace()
|
|||
{
|
||||
auto threads = GetThreadsInfo();
|
||||
|
||||
u32 entry, stackTop;
|
||||
u32 entry = 0, stackTop = 0;
|
||||
for (size_t i = 0; i < threads.size(); i++)
|
||||
{
|
||||
if (threads[i].isCurrent)
|
||||
|
@ -672,6 +672,10 @@ void CtrlStackTraceView::loadStackTrace()
|
|||
}
|
||||
}
|
||||
|
||||
frames = MIPSStackWalk::Walk(cpu->GetPC(),cpu->GetRegValue(0,31),cpu->GetRegValue(0,29),entry,stackTop);
|
||||
if (entry != 0) {
|
||||
frames = MIPSStackWalk::Walk(cpu->GetPC(),cpu->GetRegValue(0,31),cpu->GetRegValue(0,29),entry,stackTop);
|
||||
} else {
|
||||
frames.clear();
|
||||
}
|
||||
Update();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue