mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug 343862: Infinite assertions when an error happens when setting breakpoints. Need to complete the requestMonitor of cancelled operations.
This commit is contained in:
parent
624a55093f
commit
e2e514ace6
2 changed files with 15 additions and 2 deletions
|
@ -1153,7 +1153,13 @@ public class GDBRunControl_7_0_NS extends AbstractDsfService implements IMIRunCo
|
||||||
// If we don't, we risk an infinite loop where we try, over and over
|
// If we don't, we risk an infinite loop where we try, over and over
|
||||||
// to perform an operation that keeps on failing.
|
// to perform an operation that keeps on failing.
|
||||||
fOngoingOperation = false;
|
fOngoingOperation = false;
|
||||||
fOperationsPending.clear();
|
|
||||||
|
// Complete each rm of the cancelled operations
|
||||||
|
while (fOperationsPending.size() > 0) {
|
||||||
|
RequestMonitor rm = fOperationsPending.poll().rm;
|
||||||
|
rm.setStatus(getStatus());
|
||||||
|
rm.done();
|
||||||
|
}
|
||||||
super.handleFailure();
|
super.handleFailure();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -1156,7 +1156,14 @@ public class MIRunControl extends AbstractDsfService implements IMIRunControl, I
|
||||||
// If we don't, we risk an infinite loop where we try, over and over
|
// If we don't, we risk an infinite loop where we try, over and over
|
||||||
// to perform an operation that keeps on failing.
|
// to perform an operation that keeps on failing.
|
||||||
fOngoingOperation = false;
|
fOngoingOperation = false;
|
||||||
fOperationsPending.clear();
|
|
||||||
|
// Complete each rm of the cancelled operations
|
||||||
|
while (fOperationsPending.size() > 0) {
|
||||||
|
RequestMonitor rm = fOperationsPending.poll().rm;
|
||||||
|
rm.setStatus(getStatus());
|
||||||
|
rm.done();
|
||||||
|
}
|
||||||
|
|
||||||
super.handleFailure();
|
super.handleFailure();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue