mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-26 07:45:33 +01:00
Callstack: Bugfix. Remove double counting in loop to allow for more callstack items to be reported.
This commit is contained in:
parent
d28155a7bb
commit
e5f5722497
@ -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
|
u32 addr = PowerPC::MMU::HostRead_U32(guard, ppc_state.gpr[1]); // SP
|
||||||
|
|
||||||
// Walk the stack chain
|
// 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);
|
u32 func_addr = PowerPC::MMU::HostRead_U32(guard, addr + 4);
|
||||||
stack_step(func_addr);
|
stack_step(func_addr);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user