unicorn-engine / unicorn

Unicorn CPU emulator framework (ARM, AArch64, M68K, Mips, Sparc, PowerPC, RiscV, S390x, TriCore, X86)
http://www.unicorn-engine.org
GNU General Public License v2.0
7.53k stars 1.33k forks source link

Fix sample_ctl.py #1830

Closed nneonneo closed 1 year ago

nneonneo commented 1 year ago

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.

wtdcode commented 1 year ago

Hi, thanks for your interest! Note the patch should go to dev branch.

nneonneo commented 1 year ago

@wtdcode fixed now.

nneonneo commented 1 year ago

@wtdcode ok, I just added __repr__ to all of the Structure subclasses, hope that's useful.

wtdcode commented 1 year ago

LGTM, thanks!