From f511c4dd1c021c8907cbb37ad855e8bbd0a2976e Mon Sep 17 00:00:00 2001 From: Coxxs <58-coxxs@users.noreply.git.ryujinx.app> Date: Sat, 21 Jun 2025 05:28:12 +0800 Subject: [PATCH] gdb: Update DebugPc during svc call --- src/ARMeilleure/State/ExecutionContext.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ARMeilleure/State/ExecutionContext.cs b/src/ARMeilleure/State/ExecutionContext.cs index 0b0a83c9f..5d8144d4e 100644 --- a/src/ARMeilleure/State/ExecutionContext.cs +++ b/src/ARMeilleure/State/ExecutionContext.cs @@ -169,6 +169,11 @@ namespace ARMeilleure.State internal void OnSupervisorCall(ulong address, int imm) { + if (Optimizations.EnableDebugging) + { + DebugPc = Pc; // TODO: Is this the best place to update DebugPc? + } + _supervisorCallback?.Invoke(this, address, imm); }