Search in sources :

Example 6 with GdbInfoLine

use of org.eclipse.che.plugin.gdb.server.parser.GdbInfoLine in project che by eclipse.

the class GdbDebugger method stepOver.

@Override
public void stepOver(StepOverAction action) throws DebuggerException {
    try {
        GdbInfoLine gdbInfoLine = gdb.next();
        if (gdbInfoLine == null) {
            disconnect();
            return;
        }
        currentLocation = gdbInfoLine.getLocation();
        debuggerCallback.onEvent(new SuspendEventImpl(gdbInfoLine.getLocation()));
    } catch (GdbTerminatedException e) {
        disconnect();
        throw e;
    } catch (IOException | GdbParseException | InterruptedException e) {
        throw new DebuggerException("Step into error. " + e.getMessage(), e);
    }
}
Also used : SuspendEventImpl(org.eclipse.che.api.debug.shared.model.impl.event.SuspendEventImpl) GdbInfoLine(org.eclipse.che.plugin.gdb.server.parser.GdbInfoLine) DebuggerException(org.eclipse.che.api.debugger.server.exceptions.DebuggerException) GdbTerminatedException(org.eclipse.che.plugin.gdb.server.exception.GdbTerminatedException) IOException(java.io.IOException) GdbParseException(org.eclipse.che.plugin.gdb.server.exception.GdbParseException)

Aggregations

GdbInfoLine (org.eclipse.che.plugin.gdb.server.parser.GdbInfoLine)6 IOException (java.io.IOException)3 SuspendEventImpl (org.eclipse.che.api.debug.shared.model.impl.event.SuspendEventImpl)3 DebuggerException (org.eclipse.che.api.debugger.server.exceptions.DebuggerException)3 GdbParseException (org.eclipse.che.plugin.gdb.server.exception.GdbParseException)3 GdbTerminatedException (org.eclipse.che.plugin.gdb.server.exception.GdbTerminatedException)3 Test (org.testng.annotations.Test)3