adding support for basicblock feature introduced by 78

This commit is contained in:
Michael Hunhoff
2020-07-03 14:34:32 -06:00
parent f52adc6b7e
commit 6dc75c5f29

View File

@@ -530,6 +530,9 @@ class CapaExplorerDataModel(QtCore.QAbstractItemModel):
parent, display, source=doc["rules"].get(feature[feature["type"]], {}).get("source", "")
)
if feature["type"] == "basicblock":
return CapaExplorerBlockItem(parent, location)
if feature["type"] in instruction_view:
return CapaExplorerInstructionViewItem(parent, display, location)