| Summary: | AbstractMIControl processMIOutput() ; OOBRecord; Keeping only the last 20 records is not enough in some cases. | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Marc Dumais <marc.dumais> | ||||
| Component: | cdt-debug-dsf-gdb | Assignee: | Marc Khouzam <marc.khouzam> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Marc Khouzam <marc.khouzam> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | cdtdoug, pawel.1.piech | ||||
| Version: | 8.0 | ||||||
| Target Milestone: | 7.0.2 | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| See Also: | https://bugs.eclipse.org/bugs/show_bug.cgi?id=569911 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Marc Dumais
Bug 302927 introduced this limitation. Interestingly, for the CDI fix, we do check if a command is currently in the queue and don't discard in that case. We need to do the same for DSF-GDB. This problem could occur for any CLI command that has an answer of more than 20 lines. Created attachment 183465 [details]
proposed patch
The patch adds a check to see if a command is currently running. If so, no limit is put on the number of OOB records being kept. Else the previous limit of 20 is still in effect.
(In reply to comment #2) > Created an attachment (id=183465) [details] > proposed patch > > The patch adds a check to see if a command is currently running. If so, no > limit is put on the number of OOB records being kept. Else the previous limit > of 20 is still in effect. Thanks for the contribution. Committed to HEAD. Committed to 7_0 also. *** cdt cvs genie on behalf of mkhouzam *** Bug 330608: Only discard OOB records if we are not waiting for an answer. This is to keep all output of CLI commands. [*] AbstractMIControl.java 1.15 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/AbstractMIControl.java?root=Tools_Project&r1=1.14&r2=1.15 [*] AbstractMIControl.java 1.14.2.1 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/AbstractMIControl.java?root=Tools_Project&r1=1.14&r2=1.14.2.1 |