1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 06:32:10 +02:00

Bug 330608: Only discard OOB records if we are not waiting for an answer. This is to keep all output of CLI commands.

This commit is contained in:
Marc Khouzam 2010-11-22 14:29:48 +00:00
parent c4ca43c1ac
commit a48572ef30

View file

@ -890,7 +890,9 @@ public abstract class AbstractMIControl extends AbstractDsfService
final MIOOBRecord oob = fMiParser.parseMIOOBRecord(line); final MIOOBRecord oob = fMiParser.parseMIOOBRecord(line);
fAccumulatedOOBRecords.add(oob); fAccumulatedOOBRecords.add(oob);
if (fAccumulatedOOBRecords.size() > 20) { // limit growth; see bug 302927 // limit growth, but only if these are not responses to CLI commands
// Bug 302927 & 330608
if (fRxCommands.isEmpty() && fAccumulatedOOBRecords.size() > 20) {
fAccumulatedOOBRecords.remove(0); fAccumulatedOOBRecords.remove(0);
} }