diff --git a/Ghidra/Debug/Debugger-agent-gdb/src/main/java/agent/gdb/manager/impl/GdbManagerImpl.java b/Ghidra/Debug/Debugger-agent-gdb/src/main/java/agent/gdb/manager/impl/GdbManagerImpl.java index 28c14cbb1e..47658f03cb 100644 --- a/Ghidra/Debug/Debugger-agent-gdb/src/main/java/agent/gdb/manager/impl/GdbManagerImpl.java +++ b/Ghidra/Debug/Debugger-agent-gdb/src/main/java/agent/gdb/manager/impl/GdbManagerImpl.java @@ -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);