Correctly display events when dumping using the FST format
This patch is from Tony Bybell and fixes a segmentation fault when dumping an event to a FST file.
This commit is contained in:
parent
e6be9dec08
commit
9635f031a1
|
|
@ -83,7 +83,7 @@ static void show_this_item(struct vcd_info*info)
|
|||
} else {
|
||||
value.format = vpiBinStrVal;
|
||||
vpi_get_value(info->item, &value);
|
||||
fstWriterEmitValueChange(dump_file, info->handle, value.value.str);
|
||||
fstWriterEmitValueChange(dump_file, info->handle, (type != vpiNamedEvent) ? value.value.str : "1");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue