Merge pull request #12332 from TryTwo/bugfix_GetCallstack

Callstack: Bugfix. Fix loop to allow for more lines.
This commit is contained in:
Tilka 2023-11-28 01:06:47 +00:00 committed by GitHub
commit 074de243e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);