From e5f57224974a3a2057997b2622a8f7e8af8680bf Mon Sep 17 00:00:00 2001 From: TryTwo Date: Sat, 25 Nov 2023 15:57:45 -0700 Subject: [PATCH] Callstack: Bugfix. Remove double counting in loop to allow for more callstack items to be reported. --- Source/Core/Core/Debugger/Debugger_SymbolMap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/Debugger/Debugger_SymbolMap.cpp b/Source/Core/Core/Debugger/Debugger_SymbolMap.cpp index c44ef40245..16aff1a3b4 100644 --- a/Source/Core/Core/Debugger/Debugger_SymbolMap.cpp +++ b/Source/Core/Core/Debugger/Debugger_SymbolMap.cpp @@ -54,7 +54,7 @@ static void WalkTheStack(Core::System& system, const Core::CPUThreadGuard& guard u32 addr = PowerPC::MMU::HostRead_U32(guard, ppc_state.gpr[1]); // SP // Walk the stack chain - for (int count = 0; !IsStackBottom(guard, addr + 4) && (count++ < 20); ++count) + for (int count = 0; !IsStackBottom(guard, addr + 4) && (count < 20); ++count) { u32 func_addr = PowerPC::MMU::HostRead_U32(guard, addr + 4); stack_step(func_addr);