Commit c2841e90 authored by Andrey Filippov's avatar Andrey Filippov

parsing python error output in cocotb simulation

parent bed95aed
......@@ -104,16 +104,24 @@ public class VDTRunner {
public void abortLaunch(String consoleName){
final VDTRunnerConfiguration runConfig=runningBuilds.resumeConfiguration(consoleName);
try {
Tool tool=ToolsCore.getTool(runConfig.getToolName()); // null pointer with Icarus/gtkwave - seems it is already closed sometimes
tool.setDirty(false);
tool.setState(TOOL_STATE.FAILURE);
// tool.setRunning(false);
// tool.setRunning(false);
System.out.println("VDTRunner#abortLaunch("+consoleName+"), tool="+tool.getName()+" "+tool.toString()+" state="+tool.getState()+" threadID="+Thread.currentThread().getId());
tool.setMode(TOOL_MODE.STOP);
// tool.setTimeStamp(); // will set at start
// tool.setTimeStamp(); // will set at start
tool.toolFinished();
} catch (NullPointerException npe){
System.out.println("VDTRunner#abortLaunch("+consoleName+"), tool= null, threadID="+Thread.currentThread().getId());
}
//removeConfiguration
runningBuilds.removeConfiguration(runConfig.getOriginalConsoleName());
try {
runningBuilds.removeConfiguration(runConfig.getOriginalConsoleName()); // null pointer here
} catch (NullPointerException npe){
System.out.println("VDTRunner#abortLaunch("+consoleName+")???, tool= null, threadID="+Thread.currentThread().getId());
}
}
public void resumeLaunch(String consoleName, int expectedStep) throws CoreException {
......
......@@ -116,12 +116,12 @@
package="FPGA_package"
interface="Cocotb"
errors="(.*):([0-9]+): [a-z_\- ]*error[: ]?(.*)"
warnings="(.*):([0-9]+): [a-z_\- ]*warning: (.*)"
info="(.*):([0-9]+): [a-z_\- ]*sorry: (.*)"
warnings="(.*):([0-9]+): [a-z_\- ]*[warning|sorry]: (.*)"
info="\s*File\s+"(.*)", line ([0-9]+)[, in ]?(.*)"
top-file="%CocotbDutTopFile"
define="COCOTB"
>
<!-- info="(.*):([0-9]+): [a-z_\- ]*sorry: (.*)" -->
<extensions-list>
<extension mask="v" />
<extension mask="tf" />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment