Skip to content
Snippets Groups Projects
Commit 693f6c54 authored by Kingcom's avatar Kingcom
Browse files

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

parent 0bf5a0bf
No related branches found
No related tags found
No related merge requests found
...@@ -38,6 +38,9 @@ void CallstackWidget::OnCPUStepped() ...@@ -38,6 +38,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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment