diff options
| author | Scott Lagler <laglerscott@gmail.com> | 2023-11-21 20:01:33 -0500 |
|---|---|---|
| committer | xusheng <xusheng@vector35.com> | 2023-11-23 15:38:26 +0800 |
| commit | f7fc9a16455913bc97b969a653e06a00dfa9eb23 (patch) | |
| tree | 12deea877a10818e13c928bfa55fc7df59fa7028 /python/highlevelil.py | |
| parent | 049692f154af2c50e88ddb77edd64cb70f15ac12 (diff) | |
Fix address printing for BasicBlocks in repr
Diffstat (limited to 'python/highlevelil.py')
| -rw-r--r-- | python/highlevelil.py | 7 |
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 |
