diff options
| author | Peter LaFosse <peter@vector35.com> | 2023-06-29 11:36:48 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2023-06-29 11:54:03 -0400 |
| commit | e8d6feb5e0b2f8201e06c3cbd5c25194829761d8 (patch) | |
| tree | cbdfd6fc5d36177f6bebc580e30b7085cef8a631 /python/highlevelil.py | |
| parent | d7ce6518974f5df461c5423c5cf89054e7bc2cea (diff) | |
Improve __repr__ for IL instructions, and related objects
Diffstat (limited to 'python/highlevelil.py')
| -rw-r--r-- | python/highlevelil.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/python/highlevelil.py b/python/highlevelil.py index 60359a20..976ebc79 100644 --- a/python/highlevelil.py +++ b/python/highlevelil.py @@ -79,8 +79,8 @@ class HighLevelILOperationAndSize: def __repr__(self): if self.size == 0: - return f"<{self.operation.name}>" - return f"<{self.operation.name} {self.size}>" + return f"<HighLevelILOperationAndSize: {self.operation.name}>" + return f"<HighLevelILOperationAndSize: {self.operation.name} {self.size}>" @dataclass @@ -89,7 +89,7 @@ class GotoLabel: id: int def __repr__(self): - return f"<label: {self.name}>" + return f"<GotoLabel: {self.name}>" def __str__(self): return self.name @@ -351,7 +351,7 @@ class HighLevelILInstruction(BaseILInstruction): first_line += token.text if len(list(lines)) > 1: continuation = "..." - return f"<{self.operation.name}: {first_line}{continuation}>" + return f"<{self.__class__.__name__}: {first_line}{continuation}>" def __eq__(self, other: 'HighLevelILInstruction'): if not isinstance(other, HighLevelILInstruction): |
