gdb: Fix crash on stop emulation if gdb stub is enabled with app running

This commit is contained in:
Coxxs 2025-06-21 01:47:19 +08:00
parent 745200373b
commit eb41143988

View file

@ -743,7 +743,7 @@ namespace Ryujinx.HLE.HOS.Kernel.Process
ExceptionCallback breakCallback = null;
ExceptionCallbackNoArgs stepCallback = null;
if (KernelContext.Device.Configuration.EnableGdbStub)
if (KernelContext.Device.Configuration.EnableGdbStub && KernelContext.Device.Debugger != null)
{
breakCallback = KernelContext.Device.Debugger.BreakHandler;
stepCallback = KernelContext.Device.Debugger.StepHandler;