gdb: fix GDB_AttachToProcess returning success even when the process doesn't exist
This commit is contained in:
parent
89e42a457c
commit
5c4d6c68b2
@ -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;
|
||||
|
Reference in New Issue
Block a user