Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 315207

Summary: [console] Inconsistent console output when redirected to a file
Product: [Tools] CDT Reporter: Marc Khouzam <marc.khouzam>
Component: cdt-debugAssignee: cdt-debug-inbox <cdt-debug-inbox>
Status: NEW --- QA Contact: Jonah Graham <jonah>
Severity: normal    
Priority: P3 CC: aegges, pawel.1.piech
Version: 7.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Marc Khouzam CLA 2010-06-01 09:05:31 EDT
From bug 314258 comment #19.

When using the launch Common tab to configure Standard Input and Output, we have noticed inconsistent behavior.

If the chosen file is in the workspace, only the output of the inferior is printed to the file.  However, the gdb console still says [Console output redirected to file:<file>], which is not true.

If the chosen file is outside the workspace then both gdb console and inferior console have their output written to the file.
What is worse is that the two output seem to compete for the file and overrite each other!

This may be a platform bug where multiple launch processes are not handled properly for output to file, but we would have to investigate more to confirm.

Note also the Axel noticed:
"BTW, in the launch config it says "Standard input and output". But output to
stderr is saved as well in the file (and shown in the console). Sometimes it
would be helpful to have two separated files for stout and stderr. But that is
another story ..."
But this may be more of platform issue.