Merge remote-tracking branch

'origin/GP-1153_d-millar_file_stream_confusion_bug' into patch (Closes
#3238)
This commit is contained in:
Ryan Kurtz 2021-07-23 13:29:06 -04:00
commit 19fa121b30

View File

@ -723,23 +723,23 @@ public class GdbManagerImpl implements GdbManager {
return;
}
curCmd = pcmd;
}
//Msg.debug(this, "CURCMD = " + curCmd);
if (LOG_IO) {
DBG_LOG.println("*CMD: " + cmd.getClass());
DBG_LOG.flush();
}
String text = cmd.encode();
if (text != null) {
Interpreter interpreter = cmd.getInterpreter();
PrintWriter wr = getWriter(interpreter);
//Msg.debug(this, "STDIN: " + text);
wr.println(text);
wr.flush();
//Msg.debug(this, "CURCMD = " + curCmd);
if (LOG_IO) {
DBG_LOG.println(">" + interpreter + ": " + text);
DBG_LOG.println("*CMD: " + cmd.getClass());
DBG_LOG.flush();
}
String text = cmd.encode();
if (text != null) {
Interpreter interpreter = cmd.getInterpreter();
PrintWriter wr = getWriter(interpreter);
//Msg.debug(this, "STDIN: " + text);
wr.println(text);
wr.flush();
if (LOG_IO) {
DBG_LOG.println(">" + interpreter + ": " + text);
DBG_LOG.flush();
}
}
}
}).exceptionally((exc) -> {
pcmd.completeExceptionally(exc);