Crashfixes

This commit is contained in:
Henrik Rydgård committed 2024-11-07 19:56:32 +01:00
1 parent e9bc28f629
commit 8081ebc265
3 files changed
+7 -2

No files matched your search

+5
View File
@@ -163,6 +163,11 @@ namespace MIPSStackWalk {
std::vector<StackFrame> Walk(u32 pc, u32 ra, u32 sp, u32 threadEntry, u32 threadStackTop) {
std::vector<StackFrame> frames;
if (!Memory::IsValidAddress(pc) || !Memory::IsValidAddress(sp) || !Memory::IsValidAddress(ra)) {
return frames;
}
StackFrame current;
current.pc = pc;
current.sp = sp;