diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/lowlevelil.py | 7 | ||||
| -rw-r--r-- | python/mediumlevelil.py | 7 |
2 files changed, 14 insertions, 0 deletions
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 "<llil func: %s@%#x>" % (arch.name, self.source_function.start) + else: + return "<llil func: %#x>" % self.source_function.start + @property def current_address(self): """Current IL Address (read/write)""" diff --git a/python/mediumlevelil.py b/python/mediumlevelil.py index ba352503..21c50817 100644 --- a/python/mediumlevelil.py +++ b/python/mediumlevelil.py @@ -824,6 +824,13 @@ class MediumLevelILFunction(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 "<mlil func: %s@%#x>" % (arch.name, self.source_function.start) + else: + return "<mlil func: %#x>" % self.source_function.start + @property def current_address(self): """Current IL Address (read/write)""" |
