1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 17:05:26 +02:00

Bug 325394 - follow-up fix

This commit is contained in:
Anton Leherbauer 2010-11-05 13:24:01 +00:00
parent 3a5ca94dd2
commit 2d6e299347

View file

@ -741,6 +741,19 @@ public class DsfSourceDisplayAdapter implements ISourceDisplay, ISteppingControl
// If there is a previous lookup job running, cancel it.
if (fRunningLookupJob != null) {
fRunningLookupJob.cancel();
if (!eventTriggered && frameData.isIdentical(fRunningLookupJob.fFrameData)) {
// identical location - we are done
return;
}
// cancel running lookup job
fRunningLookupJob.cancel();
// make sure doneStepping() is called even if the job never ran - bug 325394
if (fRunningLookupJob.fEventTriggered) {
// ... but not if this request is event-triggered for the same context (duplicate suspended event)
if (!eventTriggered || !fRunningLookupJob.getDmc().equals(frameData.fDmc)) {
doneStepping(fRunningLookupJob.getDmc());
}
}
}
fRunningLookupJob = new LookupJob(frameData, page, eventTriggered);