Rosalina: Fix crash for external PMDBG_DebugNextApplicationByForce

This commit is contained in:
Bent 2022-06-15 12:45:01 +02:00 committed by TuxSH
parent 80aee6fdc1
commit 0c3f51815e

View File

@ -72,6 +72,8 @@ MyThread *debuggerCreateDebugThread(void)
void debuggerFetchAndSetNextApplicationDebugHandleTask(void *argdata) void debuggerFetchAndSetNextApplicationDebugHandleTask(void *argdata)
{ {
(void)argdata; (void)argdata;
if(!nextApplicationGdbCtx)
return;
Handle debug = 0; Handle debug = 0;
PMDBG_RunQueuedProcess(&debug); PMDBG_RunQueuedProcess(&debug);
GDB_LockAllContexts(&gdbServer); GDB_LockAllContexts(&gdbServer);