summaryrefslogtreecommitdiff
path: root/python/mediumlevelil.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/mediumlevelil.py')
-rw-r--r--python/mediumlevelil.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/python/mediumlevelil.py b/python/mediumlevelil.py
index 1f122d2a..c1c4d231 100644
--- a/python/mediumlevelil.py
+++ b/python/mediumlevelil.py
@@ -3752,6 +3752,13 @@ class MediumLevelILBasicBlock(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}>"
+
def _create_instance(
self, handle: core.BNBasicBlockHandle) -> 'MediumLevelILBasicBlock':
"""Internal method by super to instantiate child instances"""