thermosphere: fix sending bug when handling ctrl-c

This commit is contained in:
TuxSH committed 2021-02-19 21:52:12 +00:00
1 parent bf7f077432
commit f1a241ffef
1 file changed
+7 -1
+7 -1
View File
@@ -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);