summaryrefslogtreecommitdiff
path: root/python/highlevelil.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/highlevelil.py')
-rw-r--r--python/highlevelil.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/python/highlevelil.py b/python/highlevelil.py
index 5e5708b5..4795ff7f 100644
--- a/python/highlevelil.py
+++ b/python/highlevelil.py
@@ -3013,6 +3013,13 @@ class HighLevelILBasicBlock(basicblock.BasicBlock):
else:
return False
+ def __repr__(self):
+ arch = self.arch
+ if arch:
+ return f"<{self.__class__.__name__}: {arch.name}@{self.start}-{self.end}>"
+ else:
+ return f"<{self.__class__.__name__}: {self.start}-{self.end}>"
+
@property
def instruction_count(self) -> int:
return self.end - self.start