From 5c4d6c68b2621993102d54c6046982b115f012b6 Mon Sep 17 00:00:00 2001 From: TuxSH Date: Thu, 18 Apr 2019 00:40:20 +0200 Subject: [PATCH] gdb: fix GDB_AttachToProcess returning success even when the process doesn't exist --- sysmodules/rosalina/source/gdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysmodules/rosalina/source/gdb.c b/sysmodules/rosalina/source/gdb.c index c203abc..f276ed2 100644 --- a/sysmodules/rosalina/source/gdb.c +++ b/sysmodules/rosalina/source/gdb.c @@ -70,7 +70,7 @@ Result GDB_AttachToProcess(GDBContext *ctx) // The second case will have, after RunQueuedProcess: attach process, debugger break, attach thread (with creator = 0) if (!(ctx->flags & GDB_FLAG_ATTACHED_AT_START)) - svcDebugActiveProcess(&ctx->debug, ctx->pid); + r = svcDebugActiveProcess(&ctx->debug, ctx->pid); else { r = 0;