thermosphere: gdb/debug: avoid pause/unpause race condition in vCont + bugfix

This commit is contained in:
TuxSH committed 2020-02-04 19:12:23 +00:00
1 parent 5dd8e3c129
commit 8dc536cc5b
6 files changed
+39 -15

No files matched your search

+4 -2
View File
@@ -347,7 +347,8 @@ GDB_DECLARE_HANDLER(ContinueOrStepDeprecated)
debugManagerSetSteppingRange(coreId, 0, 0);
}
debugManagerUnpauseCores(coreList, ssMask);
debugManagerSetSingleStepCoreList(ssMask);
debugManagerUnpauseCores(coreList);
return 0;
}
@@ -461,8 +462,9 @@ GDB_DECLARE_VERBOSE_HANDLER(Continue)
cmd = nextCmd;
}
debugManagerSetSingleStepCoreList(stepCoreList);
debugManagerBreakCores(stopCoreList);
debugManagerUnpauseCores(continueCoreList, stepCoreList);
debugManagerContinueCores(continueCoreList);
return 0;
}