Fix order of reporting STOPPED THREAD events

- report stopped threads for interrupts after resuming
accidentally stopped threads
- unintended threads will not be available when event
for interrupt is reported

Resolves: NEO-6927

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe 2022-04-29 08:35:15 +00:00 committed by Compute-Runtime-Automation
parent a3fe50c2e4
commit 4896adc655
1 changed files with 1 additions and 2 deletions

View File

@ -573,14 +573,13 @@ void DebugSessionImp::generateEventsAndResumeStoppedThreads() {
}
if (triggerEvents) {
generateEventsForPendingInterrupts();
std::vector<EuThread::ThreadId> resumeThreads;
std::vector<EuThread::ThreadId> stoppedThreadsToReport;
fillResumeAndStoppedThreadsFromNewlyStopped(resumeThreads, stoppedThreadsToReport);
resumeAccidentallyStoppedThreads(resumeThreads);
generateEventsForPendingInterrupts();
generateEventsForStoppedThreads(stoppedThreadsToReport);
interruptSent = false;