2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

citra-qt: Add check for valid address to call stack

This commit is contained in:
Kingcom 2015-01-07 21:39:40 +01:00
parent 0bf5a0bfc4
commit 693f6c54e5

View file

@ -39,6 +39,9 @@ void CallstackWidget::OnCPUStepped()
ret_addr = Memory::Read32(addr); ret_addr = Memory::Read32(addr);
call_addr = ret_addr - 4; //get call address??? call_addr = ret_addr - 4; //get call address???
if (Memory::GetPointer(call_addr) == nullptr)
break;
/* TODO (mattvail) clean me, move to debugger interface */ /* TODO (mattvail) clean me, move to debugger interface */
u32 insn = Memory::Read32(call_addr); u32 insn = Memory::Read32(call_addr);
if (disasm->Decode(insn) == OP_BL) if (disasm->Decode(insn) == OP_BL)