gdb: fix GDB_AttachToProcess returning success even when the process doesn't exist

This commit is contained in:
TuxSH 2019-04-18 00:40:20 +02:00
parent 89e42a457c
commit 5c4d6c68b2

View File

@ -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) // The second case will have, after RunQueuedProcess: attach process, debugger break, attach thread (with creator = 0)
if (!(ctx->flags & GDB_FLAG_ATTACHED_AT_START)) if (!(ctx->flags & GDB_FLAG_ATTACHED_AT_START))
svcDebugActiveProcess(&ctx->debug, ctx->pid); r = svcDebugActiveProcess(&ctx->debug, ctx->pid);
else else
{ {
r = 0; r = 0;