mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-12-22 20:31:14 +00:00
thermosphere: fix sending bug when handling ctrl-c
This commit is contained in:
parent
50efbe1840
commit
c12a32c540
1 changed files with 7 additions and 1 deletions
|
@ -540,7 +540,13 @@ GDB_DECLARE_VERBOSE_HANDLER(Continue)
|
|||
|
||||
// "Note: In non-stop mode, a thread is considered running until GDB acknowledges
|
||||
// an asynchronous stop notification for it with the ‘vStopped’ packet (see Remote Non-Stop)."
|
||||
u32 mask = GDB_IsNonStop(ctx) ? ctx->acknowledgedDebugEventCoreList : ctx->attachedCoreList;
|
||||
u32 mask;
|
||||
if (GDB_IsNonStop(ctx)) {
|
||||
mask = ctx->acknowledgedDebugEventCoreList;
|
||||
} else {
|
||||
mask = ctx->attachedCoreList;
|
||||
ctx->sendOwnDebugEventDisallowed = (continueCoreList & mask) == 0;
|
||||
}
|
||||
|
||||
debugManagerSetSingleStepCoreList(stepCoreList & mask);
|
||||
debugManagerBreakCores(stopCoreList & ~mask);
|
||||
|
|
Loading…
Reference in a new issue