mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
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:
committed by
Compute-Runtime-Automation
parent
a3fe50c2e4
commit
4896adc655
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user