-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix sample_ctl.py #1830
Fix sample_ctl.py #1830
Conversation
Hi, thanks for your interest! Note the patch should go to dev branch. |
@wtdcode fixed now. |
- Match the types of UC_HOOK_CODE_CB and UC_HOOK_INSN_SYS_CB to C - Avoid building a new namedtuple class in every call to _hook_insn_sys_cb
bindings/python/unicorn/unicorn.py
Outdated
@@ -424,6 +424,9 @@ class uc_arm64_cp_reg(ctypes.Structure): | |||
("val", ctypes.c_uint64) | |||
] | |||
|
|||
def __repr__(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you would like to add __repr__
for uc_arm64_cp_reg
, could you do the same for uc_arm_cp_reg
?
@wtdcode ok, I just added |
LGTM, thanks! |
sample_ctl.py
was not running correctly. It was crashing with various errors:TypeError: Uc.ctl_remove_cache() missing 1 required positional argument: 'end'
,KeyError: 64
. This patch fixes the relevant errors in the bindings and scripts.