From 79986dd0d6429ddca15645e7ab09b71ed2ae4386 Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Mon, 27 Jan 2020 00:02:51 -0500 Subject: better reprs for llil and mlil functions --- 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 87400b4d..ca00f769 100644 --- a/python/lowlevelil.py +++ b/python/lowlevelil.py @@ -1197,6 +1197,13 @@ class LowLevelILFunction(object): return True return ctypes.addressof(self.handle.contents) != ctypes.addressof(value.handle.contents) + def __repr__(self): + arch = self.source_function.arch + if arch: + return "" % (arch.name, self.source_function.start) + else: + return "" % self.source_function.start + @property def current_address(self): """Current IL Address (read/write)""" -- cgit v1.3.1