use of org.eclipse.che.api.debug.shared.model.Location in project che by eclipse.
the class GdbContinue method parse.
/**
* Factory method.
*/
public static GdbContinue parse(GdbOutput gdbOutput) throws GdbParseException {
String output = gdbOutput.getOutput();
for (String line : output.split("\n")) {
Matcher matcher = GDB_BREAKPOINT.matcher(line);
if (matcher.find()) {
String file = matcher.group(1);
String lineNumber = matcher.group(2);
Location location = new LocationImpl(file, Integer.parseInt(lineNumber));
return new GdbContinue(new BreakpointImpl(location));
}
}
return new GdbContinue(null);
}
Aggregations