From cc850ebdf753a4fa8643e6b3e596d212251f010c Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Tue, 3 Sep 2019 15:47:28 -0400 Subject: repr for llil and mlil blocks now uses decimal indexes to match the UI --- python/lowlevelil.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'python/lowlevelil.py') diff --git a/python/lowlevelil.py b/python/lowlevelil.py index 10bebcc5..b2379164 100644 --- a/python/lowlevelil.py +++ b/python/lowlevelil.py @@ -2891,6 +2891,13 @@ class LowLevelILBasicBlock(basicblock.BasicBlock): def __hash__(self): return hash((self.start, self.end, self._il_function)) + def __repr__(self): + arch = self.arch + if arch: + return "" % (arch.name, self.start, self.end) + else: + return "" % (self.start, self.end) + def __contains__(self, instruction): if type(instruction) != LowLevelILInstruction or instruction.il_basic_block != self: return False -- cgit v1.3.1