Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions bindings/python/capstone/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,10 @@ def __init__(self, cs, all_info):
self._raw.detail = ctypes.pointer(all_info.detail._type_())
ctypes.memmove(ctypes.byref(self._raw.detail[0]), ctypes.byref(all_info.detail[0]), ctypes.sizeof(type(all_info.detail[0])))

def __repr__(self):
def __repr__(self):
return '<cs.CsInsn: address=0x%x, size=%d, mnemonic=%s, op_str=%s>' % (self.address, self.size, self.mnemonic, self.op_str)

# return instruction's ID.
@property
def id(self):
Expand Down