From 693f6c54e5dfd73fa2ee51b576019621df1d722d Mon Sep 17 00:00:00 2001 From: Kingcom Date: Wed, 7 Jan 2015 21:39:40 +0100 Subject: citra-qt: Add check for valid address to call stack --- src/citra_qt/debugger/callstack.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/citra_qt/debugger/callstack.cpp b/src/citra_qt/debugger/callstack.cpp index bcc5d2143..274c5cccd 100644 --- a/src/citra_qt/debugger/callstack.cpp +++ b/src/citra_qt/debugger/callstack.cpp @@ -38,6 +38,9 @@ void CallstackWidget::OnCPUStepped() { ret_addr = Memory::Read32(addr); call_addr = ret_addr - 4; //get call address??? + + if (Memory::GetPointer(call_addr) == nullptr) + break; /* TODO (mattvail) clean me, move to debugger interface */ u32 insn = Memory::Read32(call_addr); -- cgit v1.2.3