use of org.eclipse.che.plugin.gdb.server.parser.GdbOutput in project che by eclipse.
the class Gdb method file.
/**
* `file` command.
*/
public void file(@NotNull String file) throws IOException, InterruptedException, DebuggerException {
GdbOutput gdbOutput = sendCommand("file " + file);
GdbFile.parse(gdbOutput);
}
use of org.eclipse.che.plugin.gdb.server.parser.GdbOutput in project che by eclipse.
the class Gdb method targetRemote.
/**
* `target remote` command.
*/
public void targetRemote(String host, int port) throws IOException, InterruptedException, DebuggerException {
String command = "target remote " + (host != null ? host : "") + ":" + port;
GdbOutput gdbOutput = sendCommand(command);
GdbTargetRemote.parse(gdbOutput);
}
use of org.eclipse.che.plugin.gdb.server.parser.GdbOutput in project che by eclipse.
the class Gdb method breakpoint.
/**
* `break` command
*/
public void breakpoint(int lineNumber) throws IOException, InterruptedException, DebuggerException {
String command = "break " + lineNumber;
GdbOutput gdbOutput = sendCommand(command);
GdbBreak.parse(gdbOutput);
}
use of org.eclipse.che.plugin.gdb.server.parser.GdbOutput in project che by eclipse.
the class Gdb method grabGdbOutput.
private GdbOutput grabGdbOutput() throws InterruptedException, GdbTerminatedException {
GdbOutput gdbOutput = outputs.take();
if (gdbOutput.isTerminated()) {
String errorMsg = "GDB has been terminated with output: " + gdbOutput.getOutput();
LOG.error(errorMsg);
throw new GdbTerminatedException(errorMsg);
}
return gdbOutput;
}
Aggregations