summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2015-01-08 03:00:46 +0100
committerbunnei <bunneidev@gmail.com>2015-01-08 03:00:46 +0100
commit72915423c3d4dedc9a168b0d8efdcc5ae46218d9 (patch)
tree6197018feb7a644e529b837130f3a9776988ac15 /src
parentMerge pull request #439 from Subv/idle_thread_m (diff)
parentcitra-qt: Add check for valid address to call stack (diff)
downloadyuzu-72915423c3d4dedc9a168b0d8efdcc5ae46218d9.tar
yuzu-72915423c3d4dedc9a168b0d8efdcc5ae46218d9.tar.gz
yuzu-72915423c3d4dedc9a168b0d8efdcc5ae46218d9.tar.bz2
yuzu-72915423c3d4dedc9a168b0d8efdcc5ae46218d9.tar.lz
yuzu-72915423c3d4dedc9a168b0d8efdcc5ae46218d9.tar.xz
yuzu-72915423c3d4dedc9a168b0d8efdcc5ae46218d9.tar.zst
yuzu-72915423c3d4dedc9a168b0d8efdcc5ae46218d9.zip
Diffstat (limited to 'src')
-rw-r--r--src/citra_qt/debugger/callstack.cpp3
1 files changed, 3 insertions, 0 deletions
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);