mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 19:42:36 +02:00
GP-1153: fix for file stream confusion
This commit is contained in:
parent
928bc5508a
commit
41d41992dc
1 changed files with 15 additions and 15 deletions
|
@ -15,7 +15,7 @@
|
|||
*/
|
||||
package agent.gdb.manager.impl;
|
||||
|
||||
import static ghidra.async.AsyncUtils.loop;
|
||||
import static ghidra.async.AsyncUtils.*;
|
||||
|
||||
import java.io.*;
|
||||
import java.util.*;
|
||||
|
@ -718,23 +718,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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue