1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-30 20:35:38 +02:00

Bug 500066 - Debug traces can be in the wrong order

Change-Id: I4e28ade1df7d3f35f07bfb95870e7d9c449442fc
This commit is contained in:
Marc Khouzam 2016-08-22 09:57:06 -04:00 committed by Gerrit Code Review @ Eclipse.org
parent 5426847cbb
commit 5d9eaa604e

View file

@ -667,8 +667,6 @@ public abstract class AbstractMIControl extends AbstractDsfService
try {
if (fOutputStream != null) {
fOutputStream.write(str.getBytes());
fOutputStream.flush();
if (GdbDebugOptions.DEBUG) {
GdbDebugOptions.trace(String.format( "%s %s %s", GdbPlugin.getDebugTime(), MI_TRACE_IDENTIFIER, str)); //$NON-NLS-1$
@ -689,6 +687,9 @@ public abstract class AbstractMIControl extends AbstractDsfService
setMITracingStream(null);
}
}
fOutputStream.write(str.getBytes());
fOutputStream.flush();
}
} catch (IOException e) {
// Shutdown thread in case of IO error.