From f7fc9a16455913bc97b969a653e06a00dfa9eb23 Mon Sep 17 00:00:00 2001 From: Scott Lagler Date: Tue, 21 Nov 2023 20:01:33 -0500 Subject: Fix address printing for BasicBlocks in repr --- python/highlevelil.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'python/highlevelil.py') 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 -- cgit v1.3.1